You can cast the XdmItem to an XdmNode, and then call its getAttributeValue() method.

Michael Kay

On 22/09/2011 07:58, wrote:

I am using XPathSelector as the final result holder after the compilation of an xPath expression. XPathSelector gives XdmItem or XdmVale. With this  XdmItem or XdmVale i can get the value of a node in xml file. But i want the attribute of the node. How can i get it? Is it possible using XPathSelector ? It would be of great help for my project if i get information on this.

Thanks and Regards,

All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.

saxon-help mailing list archived at