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

schema validation error

From: Marko Asplund <aspa@kronodoc.fi>
Date: Mon, 15 Apr 2002 16:42:10 +0300 (EEST)
To: xmlschema-dev@w3.org
Message-ID: <Pine.LNX.4.44.0204151635370.27763-100000@gamay.kronodoc.fi>

i'm using Xerces2 v2.0.1 SAX2 API for validating a XML document based on
XML schema with the following parser validation options:

	http://xml.org/sax/features/validation
	http://apache.org/xml/features/validation/schema

the schema has been constructed using TIBCO Extensibility TurboXML v2.2.1.  
schema validation process stops with the following error on a XML document
instance:

parse error, line: 9, col: 37, sys: file:///tmp/wgspd8786.tmp, pub: null
parse error: org.xml.sax.SAXParseException: src-ct.2: Complex Type Definition Representation Error for type '#AnonType_EXT'.  When simpleContent is used, the base type must be a complexType whose content type is simple, or, only if extension is specified, a simple type.

the Sun schema validation package succesfully validates the same document
instance. the reason for this validation problem seems to be somekind of
type definition inconsistency between the schema and the document. as my
experience in debugging schema validation errors is very limited i'd
appreciate any hints on how to locate the source for this inconsistency on
XML element level.

best regards,
-- 
	aspa
Received on Monday, 15 April 2002 09:42:42 GMT

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