write xml schema from xmldocument

  • Thread starter Thread starter Martin
  • Start date Start date
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.
 
Load the XML doc into a dataset and use the WriteXMLSchema method, not the
WriteXML method.
 
Back
Top