This is amazingly easy to read in xml and write it out to a file, check it outthe following code snippet written in C#.
string someXml = "world "; XmlDocument dataDoc = new XmlDocument(); dataDoc.LoadXml(someXml); dataDoc.Save("C:\\helloworld.xml");
See, cool ain't it?