Dataset and XSD schema.

R

RS

I have a dataset that i read schema from the XSD file in to. After, i
populate it with some values from the flat file. Fileds lend in to the right
columns in the table however when i tell Dataset to write XML it come out in
the different order as it is in the schema. Is this somethng that could be
changed? How could i make sure that XML coming out of the dataset is in the
same order as it is in the schema?
 
M

Mohamoss

hi
try to use the writeXml method with the writemode set to IgnoreSchema ,
this will not bound the dataset to the schema while writing the xml to the
file

myset.WriteXml("myfile",System.Data.XmlWriteMode.IgnoreSchema);
there are many workaround for that as well but try this one , i think it
will work
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top