G
Guest
It's a commonly known problem that XSD.exe cannot parse the following XML into either an xsd file or class
<Data><One><File><Name>Test1</Name></File></One><Two><File><Name>Test2</Name></File></Two></Data
Because it can't cope with the fact that the <File> element appears in two places (the Custom tool error: Unable to convert input xml file content to a DataSet. The same table (*TableName*) cannot be the child table in two nested relations. error). The MS provided tool "Infer.exe" WILL create an .xsd schema for this XML, but doesn't provide a way to generate a strongly-typed DataSet for it. Can anyone point me to a good workaround? There must be some way (other than me creating the typed DataSet completely manually) that I can get a repeated element into a DataSet using the XSD tool combined with some custom code. Any ideas would be appreciated
Richard
<Data><One><File><Name>Test1</Name></File></One><Two><File><Name>Test2</Name></File></Two></Data
Because it can't cope with the fact that the <File> element appears in two places (the Custom tool error: Unable to convert input xml file content to a DataSet. The same table (*TableName*) cannot be the child table in two nested relations. error). The MS provided tool "Infer.exe" WILL create an .xsd schema for this XML, but doesn't provide a way to generate a strongly-typed DataSet for it. Can anyone point me to a good workaround? There must be some way (other than me creating the typed DataSet completely manually) that I can get a repeated element into a DataSet using the XSD tool combined with some custom code. Any ideas would be appreciated
Richard