H Hykii Malakki Mar 24, 2004 #1 What is a good way to take many string variable and write/append their data to well-formed xml file on disk?
What is a good way to take many string variable and write/append their data to well-formed xml file on disk?
P pei_world Mar 24, 2004 #2 XmlTextWriter xmlwr= new XmlTextWriter("c:\\cc.xml",Encoding.ASCII); XmlDocument doc = new XmlDocument(); doc.loadXml(yourxmlString); doc.WriteTo(xmlwr); pei_world
XmlTextWriter xmlwr= new XmlTextWriter("c:\\cc.xml",Encoding.ASCII); XmlDocument doc = new XmlDocument(); doc.loadXml(yourxmlString); doc.WriteTo(xmlwr); pei_world
G Guest Mar 24, 2004 #3 why not simply use doc.save(Filename) I don´t see the advantage of the XMLWriter here, when you have the complete DOM parsed or am I wrong Mf Marti ----- pei_world wrote: ---- XmlTextWriter xmlwr= new XmlTextWriter("c:\\cc.xml",Encoding.ASCII) XmlDocument doc = new XmlDocument() doc.loadXml(yourxmlString) doc.WriteTo(xmlwr) pei_worl
why not simply use doc.save(Filename) I don´t see the advantage of the XMLWriter here, when you have the complete DOM parsed or am I wrong Mf Marti ----- pei_world wrote: ---- XmlTextWriter xmlwr= new XmlTextWriter("c:\\cc.xml",Encoding.ASCII) XmlDocument doc = new XmlDocument() doc.loadXml(yourxmlString) doc.WriteTo(xmlwr) pei_worl