cjard
Well-known member
- Joined
- Apr 25, 2006
- Messages
- 7,081
- Programming Experience
- 10+
Hi All
Every time I've encountered < or > in XML, it has been in a CDATA tag and as a result, has needed no cooking to transform it back. I'm getting an XML stream and attaching an XPathNavigator to it then running XPATH queries. Where the tag data contains > , I'm wondering if there's a setting I can put on the XPathNavigator that will revert this to > for me?
Every time I've encountered < or > in XML, it has been in a CDATA tag and as a result, has needed no cooking to transform it back. I'm getting an XML stream and attaching an XPathNavigator to it then running XPATH queries. Where the tag data contains > , I'm wondering if there's a setting I can put on the XPathNavigator that will revert this to > for me?
VB.NET:
to create the navigator:
new XPathDocument(new StringReader(_theXml.ToString())).CreateNavigator()
to query the data:
.SelectSingleNode("/Invoice/InvoiceDetails[" & index & "]/BaseItemDetail/PartNumDetail/PartDesc").Value