Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » MOXy - specify element form in external bindings
MOXy - specify element form in external bindings [message #812135] Sat, 03 March 2012 04:11 Go to previous message
Eclipse User
Hi,

could anyone please tell me if it is possible to specify element form
using external bindings?

What I'm trying to achieve is mapping for the following example xsd
(showing just a fragment):

<schema targetNamespace="myNS"
elementFormDefault="qualified"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:tns="myNS">

<element name="MESSAGE" type="tns:SomeTypeName" />
<complexType name="SomeTypeName">
<sequence>
<element name="HEADER" type="tns:Header" form="unqualified" />
</sequence>
</complexType>

</schema>

I'd like to have an external mapping document that is able to produce
such a representation:

<m:MESSAGE>
<HEADER>
...
</HEADER>
</m:MESSAGE>

Root qualification should be addressed by <xml-ns> element in an
external binding document.

But how do I instruct MOXy that the HEADER element should be unqualified?

Thanks,
Tom
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Dynamic JPA: How to handle auto generated primary key in Dynamic Type?
Next Topic:Problem with persist order in 3 table scenario including inheritance and OneToMany relationship
Goto Forum:
  


Current Time: Mon May 20 20:58:06 EDT 2013

Powered by FUDForum. Page generated in 0.01638 seconds