What is the XPath to find only ONE node (whichever) having a certain attribute (actually I\'m interested in the attribute, not the node). For example, in my XML, I have seve
The following XPath seems to do what you want:
//*[@lang][1]/attribute::lang