Archive

Posts Tagged ‘xml’

XPath to last distinct node of several

November 2nd, 2006

To return the last nodes in a set with distinct names…

/foo/*[not( name()=name(following-sibling::*) )]

eg:





Returns the lattermost and nodes.