users@jaxb.java.net

Re: IllegalArgumentException

From: Zoltan Sebestyen <szoli2_at_FREEMAIL.HU>
Date: Tue, 05 Nov 2002 10:29:38 -0700

Hi,

 I've got the same exception when I tried to compile an XML schema where an element had no type. Here is the original - simplified - schema:

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 <xsd:complexType name="XYZ">
  <xsd:sequence>
   <xsd:element name="joe">
  </xsd:sequence>
 </xsd:complexType>
</xsd:schema>

I had to put change the line

   <xsd:element name="joe">
to

   <xsd:element name="joe" type="xsd:string"/>


Regards,

Zoltan