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