Use prefixes instead op xmlns attribute

Questions about XML that are not covered by the other forums should go here.
dkruitbosch
Posts: 6
Joined: Mon Jun 13, 2005 9:42 am
Location: Netherlands

Use prefixes instead op xmlns attribute

Post by dkruitbosch »

Hi,

When I generate a document based on a schema, is it possible to "automagically" use prefixes for the element etc. instead of the xmlns attribute?

Example:

<prefix:myelement>data</myelement>

instead of

<myelement xmlns="http://mynamespace.com">data</myelement>

Thanks,

Danny
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi Danny,

Yes, just fill in the Prefix field in the New XML dialog and the root element namespace will be declared mapped to that prefix. See:
http://www.oxygenxml.com/doc/ug-oxygen/ ... tml#d4e734

Best regards,
George
Post Reply