To return the last nodes in a set with distinct names…
/foo/*[not( name()=name(following-sibling::*) )]
eg:
Returns the lattermost and nodes.
Your email address will not be published.
Name
Email
Website
Comment
You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>