how to create an xml using xml writer without declaration element

Viewed 21464

I am using XmlWriter.Create() to get a writer instance then write the XML, but the result has the <?xml version="1.0" encoding="utf-16" ?>, how do I tell my xml writer do not produce it?

3 Answers
Related