|
Sorry for troubling you again, but now I have
resolved the problem myself.
I did
SAX2XMLReader* parser;
parser = XMLReaderFactory ::
createXMLReader();
And now it is working!
Thanks a million for your help!
Vinay
----- Original Message -----
Sent: Wednesday, January 30, 2002 12:19
PM
Subject: Validation using SAX2
parser
Just to add... The errors such as starting end
element and endling root element do not match are getting reported. Only
the errors in which the i/p XML file is a valid XML but does not conform
to the DTD are not getting reported.
Thanks in
Advance, -Vinay ----- Original Message ----- From: "Vinay Kakade"
<[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent:
Wednesday, January 30, 2002 12:05 PM Subject: Re: Validation using SAX2
parser
> Thanks for the reply, Joseph. > > Yes, I
have overridden the error handler to print the errors, fatal errors >
and warnings. > And still these functions are not called, even if the
input XML file does > not conform > to the DTD. > >
Please let me know: > 1. Do I need to set XMLValidator using
setValidator() method? > 2. Do I need to set DTDHandler using
setDTDHandler() method? > > Please Reply. > >
-Vinay > > ----- Original Message ----- > From: <[EMAIL PROTECTED]> >
To: <[EMAIL PROTECTED]> >
Sent: Tuesday, January 29, 2002 11:34 PM > Subject: Re: Validation using
SAX2 parser > > > > > > Valiation problems are
reported via the ErrorHandler. Have you provided > > one? The
default error handler, per the SAX spec, just fails silently. >
> > > > >
--------------------------------------------------------------------- >
> To unsubscribe, e-mail: [EMAIL PROTECTED] >
> For additional commands, e-mail: [EMAIL PROTECTED] >
> >
|