I posted this on the ASPX beginner's site but am yetr to get a response.
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