[jboss-dev-forums] [Design of JBossXB] - Re: Mixing wildcards and elements

alex.loubyansky@jboss.com do-not-reply at jboss.com
Wed Apr 30 08:29:40 EDT 2008


If you try
<aspect class="org.jboss.test.microcontainer.beans.XmlLoadableAspect">
  |       <property name="property">Test1</property> 
  |       <somexml>hello</somexml>
  |       <attribute name="IntAttr">12</attribute>
  |    </aspect>

It'll pass. The reason is the order of particles in the sequence. property is preceding the wildcard. So, in your case, when somexml is encountered before the property, the cursor in sequence moves to the repeated wildcard. And everything after the somexml is considered to be a wildcard content.

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

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



More information about the jboss-dev-forums mailing list