Yeah Cathi ... except I don't think Stephane wants to output it as a file ...
~~Bonnie
>Hi Stephane,
>
>You should use the WriteXML method with XmlWriteMode set to "WriteSchema" like below:
>
>
>' Create a file name to write to.
>Dim filename As String = "myXmlDoc.xml"
>' Write to the file with the WriteXml method.
>thisDataSet.WriteXml(filename, System.Data.XmlWriteMode.WriteSchema)
>
>
>>Does anybody knows how to Create an inline XSD from a dataset. i can create the schema using DataSet.GetXmlSchema() and the XML with DataSet.GetXml() but how do i combine the two ?