XPath: How to select nodes which have no attributes? November 19, 2022 by Tarik //node[not(@*)] That’s the XPath to select all nodes named “node” in the document without any attributes.