You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Suchit Batheja <su...@ittc.ku.edu> on 2003/07/15 06:49:41 UTC
Validating XML docs against a Schema
Hi,
I wrote my own errorhandler class to catch the errors that occur if the
XML file is not valid.
For some reason it never throws out any errors, no matter even if the
schema does not exists and the XML file is invalid.
I have attached the code. Could use some help.
Thanks
Suchit.
RE: Validating XML docs against a Schema
Posted by Erik Rydgren <er...@mandarinen.se>.
No the parser never throws on invalid input. The parser calls the
errorhandler, aborts the parse and returns false. If you want the parser
to throw an exception then you'll have to throw the exception in the
errorhandler.
/ Erik
> -----Original Message-----
> From: Suchit Batheja [mailto:suchit@ittc.ku.edu]
> Sent: den 15 juli 2003 06:50
> To: xerces-c-dev@xml.apache.org
> Subject: Validating XML docs against a Schema
>
> Hi,
>
> I wrote my own errorhandler class to catch the errors that occur if
the
> XML file is not valid.
>
> For some reason it never throws out any errors, no matter even if
the
> schema does not exists and the XML file is invalid.
>
> I have attached the code. Could use some help.
>
> Thanks
> Suchit.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org