470,815 Members | 1,290 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,815 developers. It's quick & easy.

Writing XML file from dataset without DS name

I have an XML file from a client that I generated a schema from.
I Open a DataSet and read the schema to get the tables and relationships. I
write my tables and fields and assign parent rows etc. When I write the
data, the output file has a new wrapper element with the name of dataset. Is
there a way to write the XML from the dataset without this wrapper? I also
need to provide the encoding attribute like the input file.
Example input XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<Customer Name="XXX" Trigram="XXX">
<InputFile Name="E2820" Quantity="1" />

Example output XML

<?xml version="1.0" standalone="yes"?>
<Customer Name="Test" Trigram="TES">
<InputFile Name="x" Quantity="57" />
Steve G
Jun 9 '06 #1
0 1160

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Kelly G. | last post: by
1 post views Thread by Kelly G. | last post: by
6 posts views Thread by dast | last post: by
3 posts views Thread by maw | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.