XPathNavigator - MoveTo -> XPath Expression

8792

New Member
Does someone know how to move the cursor of an System.Xml.XPath.XPathNavigator (created by XML.XmlDocument.CreateNavigator) to a position defined by an XPath-Expression?My Problem is that i have to use relative paths but the XPathNavigator does not provide any function as far as i knowCadburry:thanks,i'v tried it but the .moveNext() method only returns TRUE only one time and the navigators cursor points still to the root element. (ni.current.InnerXML returns my xml)my xml simplified:\[code\]<Ediakt><Header> </Header><MetaData> </MetaData><Payload> <Layer2> </Layer2> <Layer2> </Layer2> <Layer2> </Layer2></Payload></Ediakt>\[/code\]and my xPath expression is ie: /Ediakt/Payload/Layer[2]
 
Back
Top