24 กุมภาพันธ์ 2555 4:37
I've received a third party xsd that is failing to create a dataset when I try using the command
xsd.exe /dataset /l:vb "C:\ThirdParty.xsd" /o:C:\Temp
as well as the MSDataSetGenerator from within Visual Studio 2010. The error message that I'm receiving is
nested table 'account' which inherits its namespace cannot have multiple parent tables in different namespaces
The third party assures me that they are not using multiple namespaces. What procedure(s) and or tools do you recommend to use to identify the problem.
24 กุมภาพันธ์ 2555 8:33
You can simply open the XSD with a texteditor, than you can see what namespaces are used, it is simply XML you know.
24 กุมภาพันธ์ 2555 15:12
Thank you for your response.
Prior to my initial post, I did look at the xsd in XMLSpy and it confirms that the xmlns and targetNamespace values are identical and when validating the schema, it passes. I then tried to create classes via the following command and it worked.
xsd.exe /classes /l:vb "C:\ThirdParty.xsd" /o:C:\Temp
Obviously something that is valid from an xml viewpoint isn't liked by the programs to create a dataset from the xsd. Any suggestion?
27 กุมภาพันธ์ 2555 9:56
There are two XSD tools to use with VS 2010!
Microsoft SDKs/Windows/v7.0A/bin/xsd.exe – the XSD tool for the older frameworks
Microsoft SDKs/Windows/v7.0A/bin/NETFX 4.0 Tools/xsd.exe – the XSD tool for framework 4.0 assemblies
Just copied from a Microsoft page.
- แก้ไขโดย Cor LigthertMVP 28 กุมภาพันธ์ 2555 8:12
6 มีนาคม 2555 8:32ผู้ดูแล
I am writing to check the status of the issue on your side. Would you mind letting us know the result of the suggestions?
Have a nice day.
6 มีนาคม 2555 14:08
Unfortunately --- No, this issue is still active. I tried Cors' last suggestion but had the same problem when I used both XSD.exe versions.
I'd like to be able to forward a copy of the ThirdParty.xsd but I'll need to get approval from the vendor before doing so. If I did that, would you be able to better determine what the issue is?
Thanks and let me know.