Create an XML file using Datasets Using info from XML Schema

Posted by Voulnet on Stack Overflow See other posts from Stack Overflow or by Voulnet
Published on 2010-03-22T05:18:29Z Indexed on 2010/03/22 5:21 UTC
Read the original article Hit count: 1005

Filed under:
|
|
|
|

Hello there, I have been thinking about the optimal way to create an XML file using data from a Dataset AND according to the rules of an XML schema.

I've been searching around for a bit, and I failed to find a way in which I only take the data from the Dataset and put it inside a XML tags, with the tags being defined by an already-existing schema.

So it might go like this: 1- Create Dataset and fill its rows with data. 2- Create an XML according to an XML schema rules. 3- Fill said XML file with data from Dataset such that data is taken from the Dataset while structure of the XML file is taken from the XML schema.

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET