how to convert the XML data to a String

R

raan

hi friends

I want to pass the whole xml data as a string to a function, how to
convert the XML data to a string
 
G

Guest

If you are referring to an XmlDocument object, you can use the OuterXml
property.
Peter
 
A

Andy

XmlDocument.OuterXml.. although its probaly a better idea just to pass
the xml objects around.
 
J

Jeroen

raan schreef:
hi friends

I want to pass the whole xml data as a string to a function, how to
convert the XML data to a string

What is the type of your XML data?

Perhaps this class helps:

System.Xml.XmlConvert

Regards,
Jeroen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top