G
Guest
I take a piece of XML like the followin
<CategoryInfo><PropertyCollection><Property key="name" value="New"/></PropertyCollection><Version major="1" minor="0"/></CategoryIfno
I load it into a dataset using any number of methods (reading from a file, from a string, from an xmldocument, etc.) and, without doing anything in the dataset immediately write the data back out to debug. For some unknown reason the dataset always moves my elements around so that the <Version> element is above the <PropertyCollection> element. Normally this would not matter but I am attempting to create XML the is imported into a system that I did not write and have no control over. They are still using DTDs and the DTD rejects XML in which the <Version> tag is above the <PropertyCollection> tab. I have tried many, many things to fix this but there seems to be no way around it. Any help would be greatly appreciated
Thanks
JC
<CategoryInfo><PropertyCollection><Property key="name" value="New"/></PropertyCollection><Version major="1" minor="0"/></CategoryIfno
I load it into a dataset using any number of methods (reading from a file, from a string, from an xmldocument, etc.) and, without doing anything in the dataset immediately write the data back out to debug. For some unknown reason the dataset always moves my elements around so that the <Version> element is above the <PropertyCollection> element. Normally this would not matter but I am attempting to create XML the is imported into a system that I did not write and have no control over. They are still using DTDs and the DTD rejects XML in which the <Version> tag is above the <PropertyCollection> tab. I have tried many, many things to fix this but there seems to be no way around it. Any help would be greatly appreciated
Thanks
JC