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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Oct 7, 2012, 6:42 AM EDT
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.