Simple issue, actually. Just curious if others recognize the problem and perhaps have a working solution for it…
I have a simple XSD file which I use to define a configuration file that is used by my application. I need to bind this schema to my project and this is done using the XDBW. In Delphi 2007, this wizard would just recognise an XSD as a schema and thus I would get perfect code for my schema.
I recently upgraded to Delphi XE and I want to recreate this code again, just for the fun of it. I could use the old code, so no problem there. I just want to see if D-XE had added some improvements.
Unfortunately, D-XE interprets the file just like any other file and generates code that would help me to create this schema from code. CLANK! (That’s the sound of my head hitting a wall…) I don’t want that! I want code to generate the XML that is described by the schema!
So, is this problem familiar for other users? Any solutions yet?
One solution is to just use the D2007 source files. That’s not an answer, though, since I need to do this exclusively from D-XE.
Another solution is by renaming the xsd file to an .biz extension. But this is an extremely ugly hack…
This is indeed a bug in Delphi XE.
It is now in the Embarcadero bug tracking system as entry 88893
I tried importing the ASX.XSD file below in Rad Studio XE using the XML Data Binding Wizard, and it just works like you describe: it imports the XSD as if it were XML in stead of XSD.
It gets me this unit:
But when using the .BIZ extension, it generates the correct unit:
Bug: Will QC this soon.