I\'m looking for the simplest way to convert a string containing valid XML into an XmlElement object in C#.
XmlElement
How can you turn this into an XmlEleme
XmlEleme
You can use XmlDocument.LoadXml() to do this.
Here is a simple examle:
XmlDocument xmlDoc = new XmlDocument(); xmlDoc.LoadXml("YOUR XML STRING");