Dear Sir or Madam:

I am trying to use the SourceGenerator at the command line to create objects
based on an XML Schema that I created using XMLSpy Enterprise Edition.

At first I was trying to use a very complex schema, but I moved to a very
simple schema and sure enough, I am getting the same error.

Here is the command line I am using:

Java SourceGenerator -i schema/klingel.xsd -package
org.klingel.family.members

This is just a test schema, but here is the schema itself:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
elementFormDefault="qualified" attributeFormDefault="unqualified">
        <xs:element name="klingels">
                <xs:annotation>
                        <xs:documentation>Comment describing your root 
element</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                        <xs:sequence>
                                <xs:element name="klingel">
                                        <xs:complexType>
                                                <xs:sequence>
                                                        <xs:element name="husband" 
minOccurs="0"/>
                                                        <xs:element name="wife" 
minOccurs="0"/>
                                                        <xs:element name="children" 
minOccurs="0">
                                                                <xs:complexType>
                                                                        <xs:sequence>
                                                                                
<xs:element name="child" maxOccurs="unbounded"/>
                                                                        </xs:sequence>
                                                                </xs:complexType>
                                                        </xs:element>
                                                </xs:sequence>
                                        </xs:complexType>
                                </xs:element>
                        </xs:sequence>
                </xs:complexType>
        </xs:element>
</xs:schema>


I have searched the archives and found someone else with the same error, but
no answer.  And I checked the docs to make certain all of these schema
elements are supported.

I am using Xerces-2.6.0.  I have changed the following properties in
castor.properties:

org.exolab.castor.parser.validation=true
org.exolab.castor.parser.namespaces=true

# Comma separated list of SAX 2 features that should be enabled
# for the default parser.
#
org.exolab.castor.features=http://xml.org/sax/features/validation,http://apa
che.org/xml/features/validation/schema

Finally, I am using (or trying to use!) Castor 0.9.5.2 jar.

I would appreciate any help anyone can offer me.

Thanks very much,

Adrian Klingel,
Raleigh, NC

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

Reply via email to