Hi All,

  I have generated Java Classes for my schema and for some of the classes
XMLBeans didn't generate the Document classes .

  Ex: I have the following XML Node in my schema

<xs:element name="NavItem" minOccurs="0" maxOccurs="unbounded">
        <xs:extension base="TextLinkNavElementType">
                <xs:element ref="NavLevel" minOccurs="0"/>
                <xs:element ref="RemoteNode" minOccurs="0"/>
                <xs:element ref="AppNavLevel" minOccurs="0"/>
        <xs:attribute name="defaultNode" type="xs:boolean">

 And the generated Java Bean "NavItem" doesn't have parse() method and when
i use 

 XmlObject.Factory.parse() i am getting a class cast exception.

  I remember when i used xmlbeans long time (when it was BEA) there used be
some option to explicitly generate Document classes for what ever complex
types we may choose.

  I have gone through the documentation and .xsdconfig but cannot figure out
where this needs to be set.

View this message in context: 
Sent from the Xml Beans - User mailing list archive at Nabble.com.

To unsubscribe, e-mail: user-unsubscr...@xmlbeans.apache.org
For additional commands, e-mail: user-h...@xmlbeans.apache.org

Reply via email to