[jboss-dev-forums] [Design of JBossXB] - Re: @XmlElementWrapper/@XmlElements

jason.greene@jboss.com do-not-reply at jboss.com
Fri Oct 12 16:36:53 EDT 2007


"jason.greene at jboss.com" wrote : Ah Ok. For that We would need a spec (or proprietary) enhancment:
  | @XmlElementWrapper(eachElement=true)
  | 
  | You can do this with an adapter, but keep in mind this representation isn't a complete mapping to application.xml since you lose the alt-dd element.
  | 

To clarify what I mean, even if XmlElementWrapper supported this, it doesnt conform to the schema because of alt-dd. The following legal xml would cause a failure:


  | <module>
  |     <connector>mq.jar</connector>
  |     <alt-dd>foo/alt.xml</alt-dd>
  | </module>
  | 

Using the adapter like above though you could map this property to an attribute on the Connector type.

-Jason

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094780#4094780

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094780



More information about the jboss-dev-forums mailing list