Can you save the entire contents of an xml to one varaible in c#?

Recommended Answers

All 3 Replies

Sure - either as a string or as a complex xml type

As a string or an XmlDocument. The last one provides easier access to it's contents.

Thank you, got it using the XmlDocument

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.