write xml schema from xmldocument

M

Martin

Hi,

I am manipulating an xmldocument class object.

at present when I want the schema wrote wrote out I am reading the
xmldocument object into a dataset and then writing the dataset to file
usring the
writexml mthod withe the xmlwritemode schama flag.

this gives me the full xmldocument plus the schema in the resulting file.

what i would like to do is write out only the schema directly from the
xmldocument, but i have not found a way to do this yet.

can anybody please tell me if this is possible and how.

thanks in adavance.

cheers

martin.
 
S

Scott M.

Load the XML doc into a dataset and use the WriteXMLSchema method, not the
WriteXML method.
 

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