Re: [xml] Re: Possible bug in the Python bindings for libxml2
- From: Daniel Veillard <veillard redhat com>
- To: Raymond Wiker <Raymond Wiker fast no>
- Cc: xml gnome org
- Subject: Re: [xml] Re: Possible bug in the Python bindings for libxml2
- Date: Fri, 10 Jan 2003 10:21:47 -0500
On Fri, Jan 10, 2003 at 03:08:10PM +0100, Raymond Wiker wrote:
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,
}
Right, this makes perfect sense ! Added,
thanks !
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]