what encoding does system.xml.xmldocument.save(string path) use to save the xml document if there is

  • Thread starter Thread starter Daniel
  • Start date Start date
D

Daniel

what encoding does system.xml.xmldocument.save(string path) use to save the
xml document if there is no <?xml... in the front of the xml document?
 
Hello Daniel,
what encoding does system.xml.xmldocument.save(string path) use to save
the xml document if there is no <?xml... in the front of the xml document?

Please don't double post.


Oliver Sturm
 
what encoding does system.xml.xmldocument.save(string path) use to save the
xml document if there is no <?xml... in the front of the xml document?
The <?xml... is mandatory.
 
Mihai N. said:
The <?xml... is mandatory.

See my response in the C# newsgroup. It's only mandatory if you're
going to have a strictly "valid" (rather than just well-formed) XML
document.
 
See my response in the C# newsgroup. It's only mandatory if you're
going to have a strictly "valid" (rather than just well-formed) XML
document.
If you don't have the <?xml then is not an XML document, is an XML fragment.
 
Back
Top