sample xml generation and namespaces

Questions about XML that are not covered by the other forums should go here.
xmlguy
Posts: 1
Joined: Fri Aug 26, 2011 9:52 pm

sample xml generation and namespaces

Post by xmlguy »

Have a set of schemas with numerous namespaces. Some elements have the same local name but occur in more than one namespace (i.e. <person:person> and <personv2:person>). I want to generate sample xml instances, but the tool only offers me the chance to select the local name. I can't tell it which "person" I want to generate the sample from.
Is there any way to tell the tool which "person" I want generated in the sample creation?
Thank you.
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: sample xml generation and namespaces

Post by adrian »

Hello,

Note that the Generate Sample XML Files tool only allows you to choose a root element from the elements in the target namespace(Namespace field, above the Root Element combo). You can check the prefix mappings in the Namespaces section from the bottom.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply