Re: [xml] Help: Exception handling in libxml2
- From: Daniel Veillard <veillard redhat com>
- To: ajay konanurmurthy wipro com
- Cc: xml gnome org, ranjit huawei com
- Subject: Re: [xml] Help: Exception handling in libxml2
- Date: Fri, 20 Feb 2009 19:28:01 +0100
On Tue, Feb 03, 2009 at 01:54:17PM +0530, ajay konanurmurthy wipro com wrote:
Thanks Rabi, but im afraid it is not working. I tried both options 0 and 1 with xmlReaderForFile ( ) but
the parser exits when if finds the special character. Kindly advice.
It's a fatal error and unless you know the encoding of the file
(in which case you can provide it to the parser (encoding when creating
the reader), if it's not indicated in the XML or if the informations
are wrong the XML specification says the parser must stop immediately
because the document is not XML.
Either you have the encoding incormation at parse time or it's not
XML and the only advice is to report the error.
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
daniel veillard com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]