Resource

Convert String to XML - .NET/C#

Jan 03, 2010 Resources | XML
This tip shows how to convert a string to XML file using C# and .NET.
  • 0
  • 0
  • 46151
If you have a valid string in "str", you can use XmlDocument to load the string and then save string to an XML file using Save method of XmlDocument. Don't forget to import System.Xml namespace before using XmlDocument.

XmlDocument doc = new XmlDocument();
doc.LoadXml(str);
doc.Save("SSML.xml");     
XAML Designer

XAML Designer and Web Developer

  • 206rank
  • 933K readers
COMMENT USING

PREMIUM SPONSORS

Hire Mobile & Web Developer on demand. 100% satisfaction. Try for 1 week or Money Back. Local and remote developers available all over USA.

TOP RESOURCES

MOST LIKED RESOURCES