You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by "Amthauer, Heiner" <He...@t-systems.com> on 2002/09/26 11:26:43 UTC

Error reading XML document based on schema!?

Hi there!

Using xerces J 2.0, I'm trying to read a xml document, based on a schema
definition, with SAX. I have turned on the features
http://xml.org/sax/features/validation and
http://apache.org/xml/features/validation/schema. However, when parsing the
document,
I'll get an error massage, saying that the root element is not defined (with
error code "cvc-elt.1", whatever that means). Reading the same document with
other XML applications, such as XML Spy works fine. 

Any hints?

greetings
Heiner


---------------------------------------------------------------
Dipl. Ing. Heiner Amthauer

T-Systems GEI GmbH

Hausanschrift: Magirusstr. 39/1, 89077 Ulm
Postanschrift: Postfach 20 64, 89010 Ulm
Telefon: +49 ( 731) 9344-4422
Telefax: +49 (731) 9344-4409
Mobil: +49 (1 78) 4269335
E-Mail: heiner.amthauer@t-systems.com
Internet: http://www.t-systems.com



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org