Instance Generation picking wrong namespace and not allowing change

Having trouble installing Oxygen? Got a bug to report? Post it all here.
jeff_gaer
Posts: 6
Joined: Tue Nov 08, 2011 5:18 pm

Instance Generation picking wrong namespace and not allowing change

Post 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.
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: Instance Generation picking wrong namespace and not allowing change

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
jeff_gaer
Posts: 6
Joined: Tue Nov 08, 2011 5:18 pm

Re: Instance Generation picking wrong namespace and not allowing change

Post 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.
tedHabermann
Posts: 1
Joined: Fri Aug 01, 2014 12:51 am

Re: Instance Generation picking wrong namespace and not allo

Post 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...
radu_pisoi
Posts: 403
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

Re: Instance Generation picking wrong namespace and not allo

Post 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.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
sorin_carbunaru
Posts: 402
Joined: Mon May 09, 2016 9:37 am

Re: Instance Generation picking wrong namespace and not allowing change

Post 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
Post Reply