XML parser 2003-05-20 - By K. Venugopal
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]
>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, > > I have attached a small program . Please download xerces2 [2] and you will find more samples under samples directory. Apache website also has faqs[3].
>Utsav > > > [1] http://xml.apache.org/xerces2-j/features.html [2]http://xml.apache.org/xerces2-j/index.html [3]http://xml.apache.org/xerces2-j/faqs.html
Hope this helps. Regards venu
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> </head> <body> <br> New Environnement wrote:<br> <blockquote type="cite" cite="mid3EC9FEF3.532A1A69@(protected)"> <pre wrap="">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.</pre> </blockquote> <br> Xerces provides an option to continue parsing in case of fatal errors .You need to set below mentioned feature see attached sample.<br> <br> <font color="#000000" face="arial,helvetica,sanserif"><font color="#ffffff" face="arial,helvetica,sanserif"><b><font color="#003333"><a class="moz-txt-link-freetext" href="http://apache.org/xml /features/continue-after-fatal-error">http://apache.org/xml/features/continue -after-fatal-error</a></font></b></font></font>[1]<br> <br> <blockquote type="cite" cite="mid3EC9FEF3.532A1A69@(protected)"> <pre wrap=""> 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, </pre> </blockquote> I have attached a small program . Please download xerces2 [2] and you will find more samples under samples directory.<br> Apache website also has faqs[3].<br> <blockquote type="cite" cite="mid3EC9FEF3.532A1A69@(protected)"> <pre wrap="">Utsav
</pre> </blockquote> [1] <a class="moz-txt-link-freetext" href="http://xml.apache.org/xerces2-j /features.html">http://xml.apache.org/xerces2-j/features.html</a><br> [2]<a class="moz-txt-link-freetext" href="http://xml.apache.org/xerces2-j /index.html">http://xml.apache.org/xerces2-j/index.html</a><br> [3]<a class="moz-txt-link-freetext" href="http://xml.apache.org/xerces2-j/faqs .html">http://xml.apache.org/xerces2-j/faqs.html</a><br> <br> <br> Hope this helps.<br> Regards<br> venu<br> <br> </body> </html>
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
|
|