By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,314 Members | 1,721 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,314 IT Pros & Developers. It's quick & easy.

how to get "version" and "encoding" using xmltextwriter

P: n/a
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
Nov 12 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Are you using WriteStartDocument?

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

"Amil Hanish" <am********@hotmail.com> wrote in message
news:ug**************@tk2msftngp13.phx.gbl...
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

Nov 12 '05 #2

P: n/a
That was it! Thanks.

Amil

"Dare Obasanjo [MSFT]" <da***@online.microsoft.com> wrote in message
news:40********@news.microsoft.com...
Are you using WriteStartDocument?

--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Amil Hanish" <am********@hotmail.com> wrote in message
news:ug**************@tk2msftngp13.phx.gbl...
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


Nov 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.