Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hide empty XML tag

Status
Not open for further replies.

inza141

Programmer
Jan 25, 2006
5
NL
I created several datatables in .NET en put some relations on it, then I add
those tables to a dataset and write the dataset to xml.
Now in the XML file everything is ok except that a parent table who has
no records in the childtable is displayed in XML as
"<DataTableName />". I don't want to display this if there isn't any child
records in it.

How do I do that, in .NET?


Greets.

iNZa.
(inza141@yahoo.com)
 
Delete the table from the dataset before you write the XML, or change the schema.

Jon

"I don't regret this, but I both rue and lament it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top