[xml] Re: Possible bug in the Python bindings for libxml2
- From: Raymond Wiker <Raymond Wiker fast no>
- To: xml gnome org
- Subject: [xml] Re: Possible bug in the Python bindings for libxml2
- Date: Fri, 10 Jan 2003 15:08:10 +0100
Raymond Wiker writes:
The reason for this failure is that xmlDoc.docSetRootElement()
has an explicit check for a NULL return value from
xmlDocSetRootElement(). AFAICT, NULL should be returned when the
document does not already have any elements.
Adding xmlDocSetRootElement to the map functions_noexcept in
python/generator.py seems to do the trick:
functions_noexcept = {
"xmlHasProp": 1,
"xmlHasNsProp": 1,
"xmlDocSetRootElement": 1,
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]