Generate XML node depth

Oxygen general issues.
gaccawi
Posts: 2
Joined: Tue Jan 13, 2009 11:47 pm

Generate XML node depth

Post by gaccawi »

When generating instance XML, oXygen 10 does not go as deep as the previous version. In particular, it seems to be unable to traverse between imported namespace XSD files where the reference is a type.

Such as an element in a.xsd is of a type defined in b.xsd, where b is imported from a different namespace.

Is this a known issue?
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Generate XML node depth

Post by sorin_ristache »

Hello,

The depth of nested elements in the generated XML instances was limited to 3 in version 10.0 for reducing the memory needs and the time necessary for generating the XML instances of large XML Schemas. Starting with version 10.1 which will be released probably in February 2009 you will be allowed to configure the default depth level with an option Discard optional elements after nested level: L (where you can set L to 3, 10, etc.) available from Preferences -> XML -> XML Instance Generator. If L is larger than 4 or 5 the size of the XML instances and implicitly the time necessary to generate them may grow exponentially with the increase of L for some schemas. This is why the default value is small.

If you need to use this option before the release of version 10.1 we can make a build with a preview of version 10.1 containing this option and send you a download URL.


Regards,
Sorin
gaccawi
Posts: 2
Joined: Tue Jan 13, 2009 11:47 pm

Re: Generate XML node depth

Post by gaccawi »

Thank you for the quick reply.

Will this be an option that can be set, like the default values, in the configuration file?
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Generate XML node depth

Post by sorin_ristache »

Yes, it will be an option that you set in the Preferences dialog and that is saved to the user preferences on disk. This option is not saved in the file created by the Export Settings button of the dialog for generating XML instances but it is read from the user preferences and used by any generation of XML instances from a command line.


Regards,
Sorin
Post Reply