3 Replies Latest reply on Jan 4, 2012 6:36 AM by tsuji

    XML-32009: (Fatal Error) Failed to parse the input schema.

    723583
      I am attempting to generate the Java classes for the attached XLM schema (JMdict_e.xsd) using the following command:

      oracle.xml.jaxb.orajaxb -schema JMdict_e.xsd -targetPkg generated

      which results in the error "XML-32009: (Fatal Error) Failed to parse the input schema."

      I created the schema from a DTD file (http://www.csse.monash.edu.au/~jwb/jmdict_dtd_h.html) following the instructions in the example http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28394/adx_j_sproc.htm#CIHICCJB

      I am using version xdk_nt_10_1_0_2_0_production.

      Can anyone help me with this please? Thanks.

      JMdict_e.xsd
      <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element name="dial" type="xs:string"/>
      <xs:element name="example" type="xs:string"/>
      <xs:element name="upd_date" type="xs:string"/>
      <xs:element name="ke_pri" type="xs:string"/>
      <xs:element name="re_nokanji" type="xs:string"/>
      <xs:element name="xref" type="xs:string"/>
      <xs:element name="etym" type="xs:string"/>
      <xs:element name="re_inf" type="xs:string"/>
      <xs:element name="k_ele">
      <xs:complexType>
      <xs:sequence>
      <xs:element ref="keb"/>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="ke_inf"/>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="ke_pri"/>
      </xs:sequence>
      </xs:complexType>
      </xs:element>
      <xs:element name="links">
      <xs:complexType>
      <xs:sequence>
      <xs:element ref="link_tag"/>
      <xs:element ref="link_desc"/>
      <xs:element ref="link_uri"/>
      </xs:sequence>
      </xs:complexType>
      </xs:element>
      <xs:element name="lsource">
      <xs:complexType>
      <xs:simpleContent>
      <xs:extension base="xs:string">
      <xs:attribute name="lang" fixed="eng"/>
      <xs:attribute name="ls_type" use="optional" type="xs:string"/>
      <xs:attribute name="ls_wasei" use="optional" type="xs:string"/>
      </xs:extension>
      </xs:simpleContent>
      </xs:complexType>
      </xs:element>
      <xs:element name="ent_seq" type="xs:string"/>
      <xs:element name="info">
      <xs:complexType>
      <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="links"/>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="bibl"/>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="etym"/>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="audit"/>
      </xs:sequence>
      </xs:complexType>
      </xs:element>
      <xs:element name="s_inf" type="xs:string"/>
      <xs:element name="link_uri" type="xs:string"/>
      <xs:element name="bib_txt" type="xs:string"/>
      <xs:element name="link_tag" type="xs:string"/>
      <xs:element name="bibl">
      <xs:complexType>
      <xs:sequence>
      <xs:element minOccurs="0" ref="bib_tag"/>
      <xs:element minOccurs="0" ref="bib_txt"/>
      </xs:sequence>
      </xs:complexType>
      </xs:element>
      <xs:element name="upd_detl" type="xs:string"/>
      <xs:element name="ant" type="xs:string"/>
      <xs:element name="ke_inf" type="xs:string"/>
      <xs:element name="audit">
      <xs:complexType>
      <xs:sequence>
      <xs:element ref="upd_date"/>
      <xs:element ref="upd_detl"/>
      </xs:sequence>
      </xs:complexType>
      </xs:element>
      <xs:element name="pos" type="xs:string"/>
      <xs:element name="pri" type="xs:string"/>
      <xs:element name="r_ele">
      <xs:complexType>
      <xs:sequence>
      <xs:element ref="reb"/>
      <xs:element minOccurs="0" ref="re_nokanji"/>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="re_restr"/>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="re_inf"/>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="re_pri"/>
      </xs:sequence>
      </xs:complexType>
      </xs:element>
      <xs:element name="bib_tag" type="xs:string"/>
      <xs:element name="re_restr" type="xs:string"/>
      <xs:element name="stagk" type="xs:string"/>
      <xs:element name="sense">
      <xs:complexType>
      <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="stagk"/>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="stagr"/>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="pos"/>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="xref"/>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="ant"/>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="field"/>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="misc"/>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="s_inf"/>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="lsource"/>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="dial"/>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="gloss"/>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="example"/>
      </xs:sequence>
      </xs:complexType>
      </xs:element>
      <xs:element name="keb" type="xs:string"/>
      <xs:element name="field" type="xs:string"/>
      <xs:element name="link_desc" type="xs:string"/>
      <xs:element name="reb" type="xs:string"/>
      <xs:element name="entry">
      <xs:complexType>
      <xs:sequence>
      <xs:element ref="ent_seq"/>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="k_ele"/>
      <xs:element maxOccurs="unbounded" ref="r_ele"/>
      <xs:element minOccurs="0" ref="info"/>
      <xs:element maxOccurs="unbounded" ref="sense"/>
      </xs:sequence>
      </xs:complexType>
      </xs:element>
      <xs:element name="stagr" type="xs:string"/>
      <xs:element name="re_pri" type="xs:string"/>
      <xs:element name="gloss">
      <xs:complexType mixed="true">
      <xs:choice minOccurs="0" maxOccurs="unbounded">
      <xs:element ref="pri"/>
      </xs:choice>
      <xs:attribute name="lang" fixed="eng"/>
      <xs:attribute name="g_gend" use="optional" type="xs:string"/>
      </xs:complexType>
      </xs:element>
      <xs:element name="misc" type="xs:string"/>
      <xs:element name="JMdict">
      <xs:complexType>
      <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" ref="entry"/>
      </xs:sequence>
      </xs:complexType>
      </xs:element>
      </xs:schema>