Hello!
I am using a XmlTextWriter to make an xml structure that I want to save in an object not in a file. I tried this but this is wrong:
I want to send the result from the xmltextwriter to a webservice so the data has to be serializable.Code:Stream xmlStream = new MemoryStream(); XmlTextWriter xmlWriter = new XmlTextWriter(xmlStream, Encoding.UTF8); xmlWriter.WriteStartDocument(true); xmlWriter.WriteStartElement("Supplier"); //Root Element ...