Tag Archives: xml

XPath to last distinct node of several

To return the last nodes in a set with distinct names… /foo/*[not( name()=name(following-sibling::*) )] eg: Returns the lattermost and nodes.

Posted in geek | Tagged | Leave a comment