I have to create an XML document that would be based on an certain XML Schema Document. Since my data is a DataSet
, I need to find the best way to start off.
I have couple of different ideas how to start:
- manually create nodes, elements, attributes that would match XSD
- transform
DataSet
into a class that would match the schema document and serialize it - something else?
Is this a right way to get a XML output from DataSet
to match XSD schema?