Page 1 of 1

Instance Generation picking wrong namespace and not allowing change

Posted: Tue Nov 08, 2011 5:22 pm
by jeff_gaer
I am trying to use the instance generation of Oxygen 12 and 13. However in the generate Sample XML file dialog, the Namespace it shows is one of the included schemas, and not the default namespace of the schema I am trying to generate a sample from. As a result the element I need is not available in the root element dropdown.

Re: Instance Generation picking wrong namespace and not allowing change

Posted: Tue Nov 08, 2011 6:37 pm
by adrian
Hello,

We are not aware of this issue.
Could you please send us the schemas(or sample schema files) to our support email address: support@oxygenxml.com

Regards,
Adrian

Re: Instance Generation picking wrong namespace and not allowing change

Posted: Tue Nov 08, 2011 6:41 pm
by jeff_gaer
Actually found the solution. The schema only contained type definitions not elements, so the tool looked for an included schema with an element definition.

Re: Instance Generation picking wrong namespace and not allo

Posted: Fri Aug 01, 2014 1:02 am
by tedHabermann
This is actually a problem in cases where you are trying to generate sample instance documents with root elements that occur in more than connected namespace. For example, assume that you have two namespaces, a and b, and the schema for a imports the schema for b. If both of those namespaces include an element named description, i.e. a:description and b:description both exist, then when you select the description element as the root element for the sample instances, as the select box only allows selection of element names, the namespace is automatically determined. If a: is found first, you can not select b: and visa versa...

Re: Instance Generation picking wrong namespace and not allo

Posted: Fri Aug 08, 2014 4:42 pm
by radu_pisoi
Hello,

Yes, there is a problem when the hierarchy of the selected schema contains 2 or more elements with the same local name but from different namespaces. In this case you could not select a certain element with a specific local name and namespace because the namespace is selected automatically depending on the selected element.
Regarding this problem, I will register an issue and you will be notified when it will be fixed.

Re: Instance Generation picking wrong namespace and not allowing change

Posted: Tue Feb 26, 2019 1:58 pm
by sorin_carbunaru
Hello everyone,

Just wanted to update this thread to say that the issue that Radu Pisoi registered has been marked as resolved in version 21.

All the best wishes,
Sorin Carbunaru
oXygen XML