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

add xml version line before xml file root node

P: n/a
Hi, All,

I try to add xml version line(<?xml version="1.0" encoding="utf-8"?>) before
xml file AutoData root node in the following file

<AutoData >
<Table1>
<Data1 10 </Data1>
<Data2 20 </Data2>
<Data3 40 </Data3>
<Table1>
</AutoData>

So finally the file is like this:

(<?xml version="1.0" encoding="utf-8"?>)
<AutoData >
<Table1>
<Data1 10 </Data1>
<Data2 20 </Data2>
<Data3 40 </Data3>
<Table1>
</AutoData>

Anyone knows how to add it?

Thanks
Martin
Nov 9 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
martin1 wrote:
I try to add xml version line(<?xml version="1.0" encoding="utf-8"?>) before
xml file AutoData root node in the following file
When you serialize/save the XML document use the proper
XmlWriterSettings with .NET 2.0.

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Nov 9 '06 #2

P: n/a
Thank you so much. Martin

"Martin Honnen" wrote:
martin1 wrote:
I try to add xml version line(<?xml version="1.0" encoding="utf-8"?>) before
xml file AutoData root node in the following file

When you serialize/save the XML document use the proper
XmlWriterSettings with .NET 2.0.

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Nov 9 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.