here is the xpath used for selecting nodes.
document.SelectNodes("my/node/url/@*[name(.)!='name_excluded']");
I can understand the @* and the !=’ ‘
But I can not grasp the [name(.) some predicate ]
I haven’t found reference for (.) at XPath (w3 org)
.in the predicate refers to the current node (it’s an AbbreviatedStep)name()is a function that takes a node-set (here, we pass it the context node) and returns its nameSo the missing parts of your understanding are: we’re going to return any attribute (
@*) SUCH THAT the attribute‘s name is notname_excluded.