Monday, 30 September 2013

How to know the current Xpath?

How to know the current Xpath?

I am currently using a Xpath Reader to go through my xml file.
What i need is a method for knowing the current Xpath. After some search i
can't find online documentation on the methods of Xpath Reader..
Does anyone know of it?
XmlTextReader xtr = new XmlTextReader(bodyPart.Data);
XPathCollection xc = new XPathCollection();
//the code between theese two lines is not here due to its size,
//but it fills the XpathCollection
XPathReader xpr = new XPathReader(xtr, xc);
while (xpr.ReadUntilMatch())
{
//What i need is a method, to be called in the reading cycle,
//that when called returns the current Xpath.
}
Does anyone knows of it?
Thank you

No comments:

Post a Comment