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

Michael Kay
Saxonica


On 22/09/2011 07:58, Rajath.Sakkari@continental-corporation.com wrote:
Hi,

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,
S.K.Rajath
E-Mail:  rajath.sakakri@continental-corporation.com

------------------------------------------------------------------------------
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.
http://p.sf.net/sfu/splunk-d2dcopy1


_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help