Is there a way? I wanted to use XPathNavigator, but i don't see how i can avoid using a file as an intermediary buffer.
Thanks.
Gordon
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Oct 7, 2012, 10:42 AM
So, in code, that would be be something like this:
XmlDocument doc = new XmlDocument();
doc.LoadXml (xmlString);
XPathNavigator nav = doc.CreateNavigator();
Alternatively, you could forget about XPathNavigator and use LINQ to XML which can certainly parse in-memory XML strings.