Re: [xml] Help: Exception handling in libxml2

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 Veillard      | libxml Gnome XML XSLT toolkit
daniel veillard com  | Rpmfind RPM search engine | virtualization library

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]