942,957 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 3602
  • C# RSS
Dec 6th, 2007
0

Writing Xml From datasource with DTD

Expand Post »
I try load a xml file (have DTD) into dataset, and bind it into datagrid (because i want to edit). when i call writeXML function, the scehema of my xml is different from the DTD..

how can i write based on my DTD?

{sorry for my bad english}
Last edited by xibnoe; Dec 6th, 2007 at 6:14 am.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
xibnoe is offline Offline
7 posts
since Jun 2006
Dec 6th, 2007
0

Re: Writing Xml From datasource with DTD

I don't think you can actually write it back using a DTD-- I think you can only use an XSD file. Once you load the file into a DataSet, it loses the DTD information and stores it in an XSD schema, I think. The WriteXML() method on a dataset does allow you to write the XSD schema to file, though...
Team Colleague
Reputation Points: 186
Solved Threads: 147
Cookie... That's it
alc6379 is offline Offline
2,519 posts
since Dec 2003

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: Passing multiple enum values as one parameter
Next Thread in C# Forum Timeline: microsoft SUCKS





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC