Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: Exporting XML/XML Schema


Message #1 by "uday shetgeri" <ushetgeri@y...> on Thu, 30 Jan 2003 07:11:47
I am trying to export XML & XML scheman from a Dataset.

I can export the dataset as XML using the myDataSet.WriteXml(s) statement.

However when I try to export the Schema, using myDataSet.WriteXmlSchema
(s) I get the following error

Cannot have a DOCTYPE declaration outside of a prolog. Error processing 
resource 'http://localhost/ADO_net_by_example/CreateXML.aspx'. Line 25, 
Position 11 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
----------^

Apparently there is some clash with the schema being output and the 
standard html header.

Is there a work around here? [I am using VS.Net and VB.Net]

Thanks

  Return to Index