[xml] functions which never return
- From: Olivier Sirven <osirven elma fr>
- To: xml gnome org
- Subject: [xml] functions which never return
- Date: Fri, 26 Nov 2004 12:11:28 +0100
Hi,
I am using libxml2 to parse rss, rdf and atom content and I have found 2
functions xhich, in some case, never return:
- xmlSAXParseMemory
I call the function this way:
xmlSAXParseMemory(NULL, data, dataLength, 1);
If data contains invalid data (like invalid xhtml) the call will never
return...the only way I've found to manage that issue is to call the function
this way: xmlSAXParseMemory(NULL, data, dataLength, 0); but I wonder if it
won't be to strict while parsing data ?
- xmlNodeDump
When the node given to xmlNodeDump contains some invalid encoded strings,
xmlNodeDump will never return. I've managed this issue by parsing the node
and its children for invalid string to correct them.
Does one can imagine in a futur release of libxml the functions to detect and
to prevent infinite recursion ?
--
Olivier Sirven
Elma Ingénierie Informatique
6, rue du Faubourg Saint-Honoré
F-75008 - Paris - France
http://www.elma.fr
Tel: +33-1-44949901
Fax: +33-1-44949902
Email: osirven elma fr
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]