471,604 Members | 1,469 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,604 software developers and data experts.

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 13176
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
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by MichaelMortimer | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.