Question : Can XM be read from a string in memory instead of a file location? - C#

I was hoping to use XmlReader reader = XmlReader.Create(response) where response was a string returned by a function that requests XML from a service. So far I have only been successful after I saved response as an XML file on the server and used XmlReader reader = XmlReader.Create(filepath) . This means there are many files building up on the drive that I will need to delete.
 The filepath from the webservice does not exist - it is a string returned as well-formed xml.
Is there a method to read XML from a string?

Answer : Can XM be read from a string in memory instead of a file location? - C#

Both Xml and DataSets can live in memory without ever being saved to files.

Both can be altered, but you have to know what you are doing - not all Xml structures can be used as a Dataset, so the alterations have to be done just right.
Random Solutions  
 
programming4us programming4us