472,143 Members | 1,416 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

how to get xml as a string from an XmlDocument object

hi all,

How would I get the xml as a string from an XmlDocument object?

thanks
Joyce

Jan 23 '07 #1
2 9758
You can use the InnerXml property.

-Asad

"joyce chan" wrote:
hi all,

How would I get the xml as a string from an XmlDocument object?

thanks
Joyce

Jan 24 '07 #2
joyce chan wrote:
How would I get the xml as a string from an XmlDocument object?
OuterXml is one direct way, then you have the Save method to save to a
StringWriter or the WriteTo method to do similar.

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Jan 24 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Throne Software | last post: by
2 posts views Thread by Glenn Venzke | last post: by
reply views Thread by leo001 | 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.