Your right, i need to send it back as a return value, i am sure there is a way to do this, i'll look into it tommorow.
Tanks for the WriteXML tip !
>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 ?