Hi all,
I need some help:
I have a DataSet object created by the .NET "xsd designer". The DataSet is being filled from a Stored Procedure which returns the results of a few select statements.
I have no problem filling the DataSet, but when I use the method GetXml() I get an XML string that is not in the format I wanted.
I get somthing like this:
<Table>
<Field_1>1</Field_1>
<Field_2>eng</Field_2>
</Table>
<Table1>
<Field_1>1</Field_1>
<Field_2>eng</Field_2>
</Table1>
When actually I wanted something like this:
<Table>
<Field_1>1</Field_1>
<Field_2>eng</Field_2>
<Table1>
<Field_1>1</Field_1>
<Field_2>eng</Field_2>
</Table1>
</Table>
I created the xsd by dragging & droping tables in the designer. I put "Table1" into "Table" when I did that, but nothing happened.
Is there a way to force a selected format on the XML I generate from the data in such a DataSet, or do I have to create the whole thing by code?
Thanks!
Lea
**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...