I need to generate an XML file based on data in an ADO.NET DataSet. I realise the DataSet object has a simple WriteXml() method but I need the XML in a very specific structure.
My question is this: Is it completely wrong or out of the ordinary to write a custom XML Writing method..? I mean, for example, a method that iterates through all the data in a DataSet, one row at a time, and writes it to a TextStream with the tags and elements exactly as they are required..?
Is there another way..?