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

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]