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/ seems to do the trick:

functions_noexcept = {
    "xmlHasProp": 1,
    "xmlHasNsProp": 1,
    "xmlDocSetRootElement": 1,

  Right, this makes perfect sense ! Added,

    thanks !


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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