Re: [xml] Re: Possible bug in the Python bindings for libxml2



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]