Groups | Blog | Home
all groups > dotnet xml > may 2004 >

dotnet xml : how to get "version" and "encoding" using xmltextwriter


Amil Hanish
5/13/2004 1:16:30 PM
I am trying to use XmlTextWriter. I write the xml data fine, but the file
is missing the first line that shows the version and encoding:

<?xml version="1.0" encoding="utf-8"?>

Can the XmlTextWriter do this?? Thanks.

Amil

Dare Obasanjo [MSFT]
5/13/2004 1:35:24 PM
Are you using WriteStartDocument?

--
This posting is provided "AS IS" with no warranties, and confers no rights.

[quoted text, click to view]

Amil Hanish
5/13/2004 3:51:25 PM
That was it! Thanks.

Amil

[quoted text, click to view]

AddThis Social Bookmark Button