Hi
I've been looking into ways of exporting typed DataSets and DataTables to
XML files. I need to manipulate the output before creating the XML file so I
don't think the WriteXml methods will do.
I would like a simple way of transforming a DataTable from e.g.
<accounts>
<account>
<id>1</id>
<name>Bob</name>
</account>
</accounts>
to (id becomes an attribute)
<accounts>
<account id="1">
<name>Bob</name>
</account>
</accounts>
When the XML file is created I would like to validate against a schema and
attach the schema namespace. The file will then be outputted to a client
browser.
I've looked at XmlWriter, TextWriter, XmlSerializer, XslCompiledTransform
classes but I'm not sure which I should use and what the simplest approach
should be.
Any advise/documentation is appreciated.
Thanks
Andrew