I'm trying to import an XSD file with some complex files from an imported schema. The XML Data Bindings Wizard gives me an "Unknown datatype" error. I see this problem mentioned in several forums but no solution in sight.
This is the file I'm trying to import. There are some other required files here.
Is there any workaround or an alternate tool to generate XML classes for Delphi XE?
Edit: This question may be a duplicate of this, at least partially. Didn't found it the first time.
Well, the XSD file contained the following:
<xs:include schemaLocation="SiiTypes_v10.xsd"/>
This file contained several data type definitions that were in the same namespace than the current file. I'm not sure if this was the cause or simply that the wizard cannot include external files, but I just went ahead and put all the type definitions inside the file and it did the trick.
I have put the file in my source control system and I pray that this doesn't bite me in the tuckus in the near future.
I'll accept my own answer in a couple of days unless somebody knows a better way to make this work.
Cheers!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With