you can simply make your xml and it's schema,
Code:
objDataSet.WriteXml("C:\\...\\file.xml");//your XMLFile
objDataSet.WriteXmlSchema("C:\\...\\schema.xsd");//your Schema
if you encounter some errors about access control you should change the permissions and roles of your user where you make your result files.
(also you can write your result inside a temporary stream).
_____________________________
Mehdi.
software engineering student.
Looking for a good job for summer 2005.