users@jaxb.java.net

Unable to generate a property name from a model group

From: David Pettigrew <petti04769_at_YAHOO.CO.UK>
Date: Sun, 24 Nov 2002 10:32:25 -0700

I am new to JAXB and I am having a problem with the following Schema and XML

<xs:element name="mixedstock">
  <xs:complexType>
    <xs:choice maxOccurs="unbounded">
      <xs:any namespace="##any" maxOccurs="unbounded"/>
    </xs:choice>
  </xs:complexType>
</xs:element>

<?xml version="1.0" encoding="UTF-8"?>
<zb:mixedstock xmlns:zb="http://www.zwiftbooks.com" xsi:schemaLocation="http://www.zwiftbooks.com zwiftbooks.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sb="http://www.slowbooks.com" xsi:noNamespaceSchemaLocation="NoNamespaceBooks.xsd">
 <zb:book>
  <zb:isbn>0-596-00058-8</zb:isbn>
  <zb:title>XML in a Nutshell</zb:title>
  <zb:author>Harold, Elliotte Rusty</zb:author>
 </zb:book>
 <sb:book>
  <sb:isbn>0-000-11111-2</sb:isbn>
  <sb:title>The Fall of The House of Usher</sb:title>
 </sb:book>
 <zb:magazine>
  <zb:title>XML News</zb:title>
  <zb:isbn>9-543-12378-5</zb:isbn>
 </zb:magazine>
 <book>
  <isbn>0-000-11111-2</isbn>
  <title>The Fall of The House of Usher</title>
 </book>
</zb:mixedstock>


The message I get is "Unable to generate a property name from a model group. Customization is required" on the <xs:choice maxOccurs="unbounded"> line.
I think my schema is too open and that is why it can't be parsed. My mixedstock.xml XML file might have any of the elements (which are defined in multiple schemas) in any order.
If anyone can elp hat would be great,
David Pettigrew