469,275 Members | 1,754 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,275 developers. It's quick & easy.

XmlDocument --> XPathDocument - How

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.

--Ed
Nov 12 '05 #1
2 13067
XmlDocument doc = ...
XPathDocument xpathDoc = new XPathDocument(new XmlNodeReader(doc));

"Ed S" <us**@example.net> wrote in message
news:OC**************@TK2MSFTNGP12.phx.gbl...
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.

--Ed

Nov 12 '05 #2
XmlDocument doc = ...
XPathDocument xpathDoc = new XPathDocument(new XmlNodeReader(doc));

"Ed S" <us**@example.net> wrote in message
news:OC**************@TK2MSFTNGP12.phx.gbl...
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.

--Ed

Nov 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Francesc Guim Bernat | last post: by
1 post views Thread by Francesc Guim Bernat | last post: by
2 posts views Thread by Robert Strickland | last post: by
reply views Thread by Ed S | last post: by
1 post views Thread by blair | last post: by
5 posts views Thread by Fahad Ashfaque | last post: by
5 posts views Thread by Ben R. | last post: by
2 posts views Thread by Tony Girgenti | last post: by
5 posts views Thread by =?Utf-8?B?TWFyaw==?= | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.