in reply to Re: XPath with node names and attributes...
in thread XPath with node names and attributes...

There must be something I am missing here. root/head/node1@att1 is invalid, while root/head/node1/@att1 works just fine. I tested that with several tools, including XML::LibXML.

I would actually had the starting slash: /root/head/node1@att1.