DataSet.WriteXML Question

G

Guest

Hello Everyone,

I have a Dataset with 3 tables in it. I use DataSet.WriteXML(path,
WriteXmlSchema) to save the dataset and its schema as a file, which executes
correctly, but in addition to the main file 'WriteXml' create a .xsd file,
containing description of the namespace and 2 of the attributes.

I was worndering if there is a way to include the data in the .xsd file as
inline schema in the main file. I intent to programmatically move the file to
different location and I do not want to deal with multiple files.

Thank for your help,
Daniel
 
G

Guest

DataSetName.WriteXML(fileNameString, XmlWriteMode.WriteSchema)

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
G

Guest

Thanks, That did it.

Cowboy (Gregory A. Beamer) - MVP said:
DataSetName.WriteXML(fileNameString, XmlWriteMode.WriteSchema)

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top