Hi,

I've got the next error with the configuration, written at the end of this mail.

------------------------------------------------------------------------
java.lang.ArrayIndexOutOfBoundsException: -1
at org.apache.xerces.util.NamespaceSupport.popContext(NamespaceSupport.java:218)
at org.apache.xml.serialize.XMLSerializer.endElementIO(XMLSerializer.java:400)
------------------------------------------------------------------------


Any idea why ? (It seems that the marshaller didn't take any account of the maxOccurs value)

My test.xsd :
------------------------------------------------------------------------
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";>

   <xsd:complexType name="containerType">
      <xsd:sequence>
         <xsd:element name="container" type="xsd:string"
                          minOccurs="1" maxOccurs="unbounded"/>
      </xsd:sequence>
      <xsd:attribute name="punten" type="xsd:nonNegativeInteger"/>
   </xsd:complexType>

<xsd:element name="evaluatie" type="containerType"/>

</xsd:schema>
------------------------------------------------------------------------

My test.xml : (NOT working, with 2 container elements)
------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>

<evaluatie punten="0">
   <container>
      Dit is een eerste test string
   </container>
   <container>
      Dit is een tweede test string
   </container>
</evaluatie>
------------------------------------------------------------------------

My test.xml : (working, with 1 container element)
------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>

<evaluatie punten="0">
   <container>
      Dit is een eerste test string
   </container>
</evaluatie>
------------------------------------------------------------------------

Greetings,

Peter

----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev




Reply via email to