i have 2 xml file:Orders.xml , OrderDetails.xml
i want to make 2 xsd file from them with this code :
| DataSet ds = new DataSet(); ds.ReadXml("Orders.xml"); ds.WriteXmlSchema("Orders.xsd"); DataSet ds2 = new DataSet(); ds2.ReadXml("OrderDetails.xml"); ds2.WriteXmlSchema("OrderDetails.xsd"); |
one of them is :
Error 1 The type 'WindowsFormsApplication1.DocumentElement' already contains a definition for '_schemaSerializationMode'
Error 2 Type 'WindowsFormsApplication1.DocumentElement' already defines a member called 'DocumentElement' with the same parameter types
Error 3 Type 'WindowsFormsApplication1.DocumentElement' already defines a member called 'DocumentElement' with the same parameter types
and .......
please help me
Roei BarPosted Sep 6, 2009, 9:09 AM
it will convert the path XML file you specify to be converted to XSD