Groups | Blog | Home
all groups > dotnet xml > june 2004 >

dotnet xml : XmlDocument --> XPathDocument - How


Ed S
6/18/2004 2:45:40 PM
Hi All,

I'd like to convert from an XmlDocument to an XPathDocument (without
saving the XmlDocument down to a file - this is a web app). I can't see
any way to do this.

Any help is appreciated.

Chris Lovett
6/19/2004 12:43:38 AM
XmlDocument doc = ...
XPathDocument xpathDoc = new XPathDocument(new XmlNodeReader(doc));

[quoted text, click to view]

AddThis Social Bookmark Button