You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Kenneth Lee <ke...@alfacomtech.com> on 2000/10/04 09:50:11 UTC

Re: Confused withvalidation

yes of coz, i caught all exceptions in calls to setFeature() and parse().
even if i didn't, it should refuse to compile since there're uncaught
exceptions
thx



----- Original Message -----
From: <St...@r2isante.fr>
To: <xe...@xml.apache.org>
Sent: Wednesday, October 04, 2000 3:36 PM
Subject: R嶨. : Confused withvalidation

Did you set an Error handler ?
If Nno, you have to set an eror handler exactly like in the Xerces Samples
"dom.parsers.DOMParser"

hope this helps..

-----------------------------------
St廧hane RAULT
R2I-D憝eloppement

"Kenneth Lee" <ke...@alfacomtech.com> le 04/10/2000 09:27:30

Veuillez r廧ondre ?xerces-j-dev@xml.apache.org

Pour :    "xerces-j Mailing List" <xe...@xml.apache.org>
cc :
Objet :   Confused with validation


Hi all,

I just begin with Xerces, and after skimmed thru the FAQ and Docs,
and write some code snippet for experiments, I still can't figure out
what validation actually means in Xerces.

In my testing codes, I turned on the validation features, both
http://xml.org/sax/features/validation and
http://apache.org/xml/features/validation/dynamic,
but seems I can still have any arbitrary elements in my XML
file, without defining them in the DTD. (Not test with schema yet)
I know the parser really parsed the DTD, I see the default
attributes, normalization, entity substitution, etc.

Look forward to your precious pointers.

Thanks in advance.
Kenneth