generate xml to file

mattyfed

Member
Joined
Jul 2, 2004
Messages
9
Programming Experience
1-3
I am looking to use .net to generate xml and save to a file, don't need the dtd or xsl, just pulling data from a DB to generate the xml. The xml does not need to be shown on screen, but saved to a specific path on the server.

Anyone know of any sample source code or advice
 
If the data you are pulling is in a DataSet you can use the WriteXML method of the DataSet:
VB.NET:
Expand Collapse Copy
  ds.WriteXml("C:\Path\File.xml")
 
Back
Top