>when I call
xerces DOM parser
>from my Java programme to parse a given XML document then it terminates
>the program
>from my Java programme to parse a given XML document then it terminates
>the program
no the default error
handler it will throw an Exception, as stated in the earlier e-mail you can
create your own error handlers
and have them handle the
error the way you want to.
-----Original Message-----
From: K. Venugopal [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 20, 2003 5:56 AM
To: New Environnement
Cc: [EMAIL PROTECTED]
Subject: Re: XML Parser
From: K. Venugopal [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 20, 2003 5:56 AM
To: New Environnement
Cc: [EMAIL PROTECTED]
Subject: Re: XML Parser
New Environnement wrote:
Hi ,
Thank you very much for the info, I think that will help me. But I
have one more question, isnt it true that when I call xerces DOM parser
from my Java programme to parse a given XML document then it terminates
the program, if the XML document is invalid. Actually I dont have much
idea about these parsers, this is what I heard from one of my colleague.Xerces provides an option to continue parsing in case of fatal errors .You need to set below mentioned feature see attached sample.
http://apache.org/xml/features/continue-after-fatal-error[1]
I have attached a small program . Please download xerces2 [2] and you will find more samples under samples directory.If you have some sample programs using Xerces parser, I would be grateful to you if you can send it to me. with warm regards,
Apache website also has faqs[3].
[1] http://xml.apache.org/xerces2-j/features.htmlUtsav
[2]http://xml.apache.org/xerces2-j/index.html
[3]http://xml.apache.org/xerces2-j/faqs.html
Hope this helps.
Regards
venu
