W3C home > Mailing lists > Public > xmlschema-dev@w3.org > April 2003

Xerces threw exception on the attached schema document

From: Stanley Guan <stanley.guan@oracle.com>
Date: Mon, 21 Apr 2003 11:00:15 -0700
Message-ID: <07f401c3082f$dd21a280$c5b42382@us.oracle.com>
To: <xmlschema-dev@w3.org>

Errors:
java.lang.ClassCastException: org.apache.xerces.impl.xs.XSComplexTypeDecl
at
org.apache.xerces.impl.xs.traversers.XSDSimpleTypeTraverser.findDTValidator(
Unknown Source)
at
org.apache.xerces.impl.xs.traversers.XSDSimpleTypeTraverser.traverseSimpleTy
peDecl(Unknown Source)
at
org.apache.xerces.impl.xs.traversers.XSDSimpleTypeTraverser.traverseGlobal(U
nknown Source)
at org.apache.xerces.impl.xs.traversers.XSDHandler.getGlobalDecl(Unknown
Source)
at
org.apache.xerces.impl.xs.traversers.XSDElementTraverser.traverseNamedElemen
t(Unknown Source)
at
org.apache.xerces.impl.xs.traversers.XSDElementTraverser.traverseGlobal(Unkn
own Source)
at org.apache.xerces.impl.xs.traversers.XSDHandler.traverseSchemas(Unknown
Source)
at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown
Source)
at org.apache.xerces.parsers.DOMASBuilderImpl.parseASURI(Unknown Source)
at dom.ASBuilder.main(Unknown Source)
=====================================================================


<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
        <xsd:element name="root" type="fooType"/>
 <xsd:complexType name="myType">
  <xsd:simpleContent>
   <xsd:extension base="xsd:integer"/>
  </xsd:simpleContent>
 </xsd:complexType>
 <xsd:simpleType name="fooType">
  <xsd:union memberTypes="myType"/>
 </xsd:simpleType>
</xsd:schema>

<?xml version="1.0"?>
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="tlsx153.xsd">
123</root>
Received on Monday, 21 April 2003 14:07:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:36 GMT