469,293 Members | 1,335 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

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 9659
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 zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.