Home All Groups Group Topic Archive Search About

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

Author
15 Mar 2007 4:13 AM
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?

Author
15 Mar 2007 9:38 AM
Oliver Sturm
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
Author
17 Mar 2007 7:44 AM
Mihai N.
> 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 Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
------------------------------------------
Replace _year_ with _ to get the real email
Author
17 Mar 2007 7:57 AM
Jon Skeet [C# MVP]
Mihai N. <nmihai_year_2***@yahoo.com> wrote:
> > 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.

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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet   Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Author
17 Mar 2007 8:15 AM
Mihai N.
> 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.


--
Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
------------------------------------------
Replace _year_ with _ to get the real email
Author
17 Mar 2007 9:11 AM
Jon Skeet [C# MVP]
Mihai N. <nmihai_year_2***@yahoo.com> wrote:
> > 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.

It's an XML 1.0 document, it's not an XML 1.1 document.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet   Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too

AddThis Social Bookmark Button