I don't believe C# supports DTD files. Even if it did, it's certain the dataset class does not know how to mangle the data it has to try to fit to a DTD. You're out of luck. You can validate XML against a schema in C#, but you can't give C# a schema and some XML and expect it to reformat it for you. Your best bet is to look at the XML that comes out of your dataset, and write an xslt sheet that modifies it to fit your schema.
Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )