This QJML file :
<?xml version="1.0" encoding="ISO-8859-1"?>
<qjml root="site">
<element name="site">
<targetClass>test.Site</targetClass>
<attribute name="name" property="name" status="REQUIRED"/>
<sequence>
<selection listProperty="pagesAndLocations" optional="True"
repeating="True">
<child element="location"/>
</selection>
</sequence>
</element>
<element content="PCDATA" name="location">
<targetClass>test.Location</targetClass>
</element>
</qjml>
throws the following exception:
Exception in thread "main" java.lang.ClassCastException: com.jxml.quick.model.qjml.QMSelection
at com.jxml.quick.util.qjml2java.ElList.<init>(ElList.java:187)
at com.jxml.quick.util.qjml2java.ElList.makeChildren(ElList.java:93)
at com.jxml.quick.util.qjml2java.ElList.<init>(ElList.java:115)
at com.jxml.quick.util.qjml2java.Element.<init>(Element.java:94)
at com.jxml.quick.util.qjml2java.QJML2Java.main(QJML2Java.java:162)