/*
 * Module code.
 *
 * Generated by SIP 4.18.1
 */

#include "sipAPIkhtml.h"

#line 71 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_xml.sip"
#include <dom_xml.h>
#line 12 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"

#line 61 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 16 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 19 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 22 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 44 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 31 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 55 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 34 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 37 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 147 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 40 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"


/* Call the instance's destructor. */
extern "C" {static void release_DOM_EntityReference(void *, int);}
static void release_DOM_EntityReference(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<DOM::EntityReference *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_EntityReference(void *, SIP_SSIZE_T, const void *);}
static void assign_DOM_EntityReference(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<DOM::EntityReference *>(sipDst)[sipDstIdx] = *reinterpret_cast<const DOM::EntityReference *>(sipSrc);
}


extern "C" {static void *array_DOM_EntityReference(SIP_SSIZE_T);}
static void *array_DOM_EntityReference(SIP_SSIZE_T sipNrElem)
{
    return new DOM::EntityReference[sipNrElem];
}


extern "C" {static void *copy_DOM_EntityReference(const void *, SIP_SSIZE_T);}
static void *copy_DOM_EntityReference(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new DOM::EntityReference(reinterpret_cast<const DOM::EntityReference *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_DOM_EntityReference(sipSimpleWrapper *);}
static void dealloc_DOM_EntityReference(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_EntityReference(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_DOM_EntityReference(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_DOM_EntityReference(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    DOM::EntityReference *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::EntityReference();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::EntityReference* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_EntityReference, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::EntityReference(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::Node* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_Node, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::EntityReference(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_DOM_EntityReference[] = {{110, 255, 1}};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_EntityReference = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__EntityReference,
        {0}
    },
    {
        sipNameNr_EntityReference,
        {0, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_DOM_EntityReference,
    0,
    init_type_DOM_EntityReference,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_EntityReference,
    assign_DOM_EntityReference,
    array_DOM_EntityReference,
    copy_DOM_EntityReference,
    release_DOM_EntityReference,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 48 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_xml.sip"
#include <dom_xml.h>
#line 191 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"

#line 61 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 195 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 198 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 201 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 204 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 44 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 207 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 210 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 55 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 213 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 216 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 147 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 219 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"


extern "C" {static PyObject *meth_DOM_Entity_publicId(PyObject *, PyObject *);}
static PyObject *meth_DOM_Entity_publicId(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Entity *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Entity, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->publicId());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Entity, sipName_publicId, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Entity_systemId(PyObject *, PyObject *);}
static PyObject *meth_DOM_Entity_systemId(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Entity *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Entity, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->systemId());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Entity, sipName_systemId, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Entity_notationName(PyObject *, PyObject *);}
static PyObject *meth_DOM_Entity_notationName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Entity *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Entity, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->notationName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Entity, sipName_notationName, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_DOM_Entity(void *, int);}
static void release_DOM_Entity(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<DOM::Entity *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_Entity(void *, SIP_SSIZE_T, const void *);}
static void assign_DOM_Entity(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<DOM::Entity *>(sipDst)[sipDstIdx] = *reinterpret_cast<const DOM::Entity *>(sipSrc);
}


extern "C" {static void *array_DOM_Entity(SIP_SSIZE_T);}
static void *array_DOM_Entity(SIP_SSIZE_T sipNrElem)
{
    return new DOM::Entity[sipNrElem];
}


extern "C" {static void *copy_DOM_Entity(const void *, SIP_SSIZE_T);}
static void *copy_DOM_Entity(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new DOM::Entity(reinterpret_cast<const DOM::Entity *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_DOM_Entity(sipSimpleWrapper *);}
static void dealloc_DOM_Entity(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_Entity(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_DOM_Entity(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_DOM_Entity(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    DOM::Entity *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Entity();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::Entity* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_Entity, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Entity(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::Node* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_Node, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Entity(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_DOM_Entity[] = {{110, 255, 1}};


static PyMethodDef methods_DOM_Entity[] = {
    {SIP_MLNAME_CAST(sipName_notationName), meth_DOM_Entity_notationName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_publicId), meth_DOM_Entity_publicId, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_systemId), meth_DOM_Entity_systemId, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_Entity = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__Entity,
        {0}
    },
    {
        sipNameNr_Entity,
        {0, 255, 0},
        3, methods_DOM_Entity,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_DOM_Entity,
    0,
    init_type_DOM_Entity,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_Entity,
    assign_DOM_Entity,
    array_DOM_Entity,
    copy_DOM_Entity,
    release_DOM_Entity,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_xml.sip"
#include <dom_xml.h>
#line 458 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"

#line 61 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 462 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 76 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_text.sip"
#include <dom_text.h>
#line 465 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 468 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 471 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 474 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 44 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 477 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 480 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 55 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 483 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 486 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 147 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 489 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"


/* Call the instance's destructor. */
extern "C" {static void release_DOM_CDATASection(void *, int);}
static void release_DOM_CDATASection(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<DOM::CDATASection *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_CDATASection(void *, SIP_SSIZE_T, const void *);}
static void assign_DOM_CDATASection(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<DOM::CDATASection *>(sipDst)[sipDstIdx] = *reinterpret_cast<const DOM::CDATASection *>(sipSrc);
}


extern "C" {static void *array_DOM_CDATASection(SIP_SSIZE_T);}
static void *array_DOM_CDATASection(SIP_SSIZE_T sipNrElem)
{
    return new DOM::CDATASection[sipNrElem];
}


extern "C" {static void *copy_DOM_CDATASection(const void *, SIP_SSIZE_T);}
static void *copy_DOM_CDATASection(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new DOM::CDATASection(reinterpret_cast<const DOM::CDATASection *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_DOM_CDATASection(sipSimpleWrapper *);}
static void dealloc_DOM_CDATASection(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_CDATASection(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_DOM_CDATASection(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_DOM_CDATASection(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    DOM::CDATASection *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::CDATASection();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::CDATASection* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_CDATASection, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::CDATASection(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::Node* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_Node, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::CDATASection(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_DOM_CDATASection[] = {{128, 255, 1}};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_CDATASection = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__CDATASection,
        {0}
    },
    {
        sipNameNr_CDATASection,
        {0, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_DOM_CDATASection,
    0,
    init_type_DOM_CDATASection,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_CDATASection,
    assign_DOM_CDATASection,
    array_DOM_CDATASection,
    copy_DOM_CDATASection,
    release_DOM_CDATASection,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 76 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_text.sip"
#include <dom_text.h>
#line 640 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"

#line 61 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 644 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 647 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 650 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 653 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 44 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 656 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 659 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 55 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 662 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 665 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 147 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 668 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"


extern "C" {static PyObject *meth_DOM_Text_splitText(PyObject *, PyObject *);}
static PyObject *meth_DOM_Text_splitText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        unsigned long a0;
        DOM::Text *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_DOM_Text, &sipCpp, &a0))
        {
            DOM::Text*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Text(sipCpp->splitText(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Text,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Text, sipName_splitText, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_DOM_Text(void *, int);}
static void release_DOM_Text(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<DOM::Text *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_Text(void *, SIP_SSIZE_T, const void *);}
static void assign_DOM_Text(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<DOM::Text *>(sipDst)[sipDstIdx] = *reinterpret_cast<const DOM::Text *>(sipSrc);
}


extern "C" {static void *array_DOM_Text(SIP_SSIZE_T);}
static void *array_DOM_Text(SIP_SSIZE_T sipNrElem)
{
    return new DOM::Text[sipNrElem];
}


extern "C" {static void *copy_DOM_Text(const void *, SIP_SSIZE_T);}
static void *copy_DOM_Text(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new DOM::Text(reinterpret_cast<const DOM::Text *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_DOM_Text(sipSimpleWrapper *);}
static void dealloc_DOM_Text(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_Text(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_DOM_Text(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_DOM_Text(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    DOM::Text *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Text();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::Text* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_Text, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Text(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::Node* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_Node, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Text(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_DOM_Text[] = {{24, 255, 1}};


static PyMethodDef methods_DOM_Text[] = {
    {SIP_MLNAME_CAST(sipName_splitText), meth_DOM_Text_splitText, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_Text = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__Text,
        {0}
    },
    {
        sipNameNr_Text,
        {0, 255, 0},
        1, methods_DOM_Text,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_DOM_Text,
    0,
    init_type_DOM_Text,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_Text,
    assign_DOM_Text,
    array_DOM_Text,
    copy_DOM_Text,
    release_DOM_Text,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 56 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_text.sip"
#include <dom_text.h>
#line 852 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"

#line 61 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 856 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 859 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 862 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 865 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 44 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 868 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 871 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 55 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 874 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 877 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 147 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 880 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"


/* Call the instance's destructor. */
extern "C" {static void release_DOM_Comment(void *, int);}
static void release_DOM_Comment(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<DOM::Comment *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_Comment(void *, SIP_SSIZE_T, const void *);}
static void assign_DOM_Comment(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<DOM::Comment *>(sipDst)[sipDstIdx] = *reinterpret_cast<const DOM::Comment *>(sipSrc);
}


extern "C" {static void *array_DOM_Comment(SIP_SSIZE_T);}
static void *array_DOM_Comment(SIP_SSIZE_T sipNrElem)
{
    return new DOM::Comment[sipNrElem];
}


extern "C" {static void *copy_DOM_Comment(const void *, SIP_SSIZE_T);}
static void *copy_DOM_Comment(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new DOM::Comment(reinterpret_cast<const DOM::Comment *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_DOM_Comment(sipSimpleWrapper *);}
static void dealloc_DOM_Comment(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_Comment(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_DOM_Comment(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_DOM_Comment(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    DOM::Comment *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Comment();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::Comment* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_Comment, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Comment(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::Node* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_Node, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Comment(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_DOM_Comment[] = {{24, 255, 1}};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_Comment = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__Comment,
        {0}
    },
    {
        sipNameNr_Comment,
        {0, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_DOM_Comment,
    0,
    init_type_DOM_Comment,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_Comment,
    assign_DOM_Comment,
    array_DOM_Comment,
    copy_DOM_Comment,
    release_DOM_Comment,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_text.sip"
#include <dom_text.h>
#line 1031 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"

#line 61 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 1035 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 1038 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 1041 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1044 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 44 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 1047 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 1050 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 55 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 1053 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 1056 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 147 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 1059 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"


extern "C" {static PyObject *meth_DOM_CharacterData_data(PyObject *, PyObject *);}
static PyObject *meth_DOM_CharacterData_data(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::CharacterData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_CharacterData, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->data());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CharacterData, sipName_data, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CharacterData_setData(PyObject *, PyObject *);}
static PyObject *meth_DOM_CharacterData_setData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        DOM::CharacterData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_CharacterData, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setData(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CharacterData, sipName_setData, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CharacterData_length(PyObject *, PyObject *);}
static PyObject *meth_DOM_CharacterData_length(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::CharacterData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_CharacterData, &sipCpp))
        {
            unsigned long sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->length();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CharacterData, sipName_length, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CharacterData_substringData(PyObject *, PyObject *);}
static PyObject *meth_DOM_CharacterData_substringData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        unsigned long a0;
        unsigned long a1;
        DOM::CharacterData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bmm", &sipSelf, sipType_DOM_CharacterData, &sipCpp, &a0, &a1))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->substringData(a0,a1));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CharacterData, sipName_substringData, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CharacterData_appendData(PyObject *, PyObject *);}
static PyObject *meth_DOM_CharacterData_appendData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        DOM::CharacterData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_CharacterData, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->appendData(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CharacterData, sipName_appendData, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CharacterData_insertData(PyObject *, PyObject *);}
static PyObject *meth_DOM_CharacterData_insertData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        unsigned long a0;
        const DOM::DOMString* a1;
        DOM::CharacterData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BmJ9", &sipSelf, sipType_DOM_CharacterData, &sipCpp, &a0, sipType_DOM_DOMString, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->insertData(a0,*a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CharacterData, sipName_insertData, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CharacterData_deleteData(PyObject *, PyObject *);}
static PyObject *meth_DOM_CharacterData_deleteData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        unsigned long a0;
        unsigned long a1;
        DOM::CharacterData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bmm", &sipSelf, sipType_DOM_CharacterData, &sipCpp, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->deleteData(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CharacterData, sipName_deleteData, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_CharacterData_replaceData(PyObject *, PyObject *);}
static PyObject *meth_DOM_CharacterData_replaceData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        unsigned long a0;
        unsigned long a1;
        const DOM::DOMString* a2;
        DOM::CharacterData *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BmmJ9", &sipSelf, sipType_DOM_CharacterData, &sipCpp, &a0, &a1, sipType_DOM_DOMString, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->replaceData(a0,a1,*a2);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_CharacterData, sipName_replaceData, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_DOM_CharacterData(void *, int);}
static void release_DOM_CharacterData(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<DOM::CharacterData *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_CharacterData(void *, SIP_SSIZE_T, const void *);}
static void assign_DOM_CharacterData(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<DOM::CharacterData *>(sipDst)[sipDstIdx] = *reinterpret_cast<const DOM::CharacterData *>(sipSrc);
}


extern "C" {static void *array_DOM_CharacterData(SIP_SSIZE_T);}
static void *array_DOM_CharacterData(SIP_SSIZE_T sipNrElem)
{
    return new DOM::CharacterData[sipNrElem];
}


extern "C" {static void *copy_DOM_CharacterData(const void *, SIP_SSIZE_T);}
static void *copy_DOM_CharacterData(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new DOM::CharacterData(reinterpret_cast<const DOM::CharacterData *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_DOM_CharacterData(sipSimpleWrapper *);}
static void dealloc_DOM_CharacterData(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_CharacterData(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_DOM_CharacterData(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_DOM_CharacterData(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    DOM::CharacterData *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::CharacterData();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::CharacterData* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_CharacterData, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::CharacterData(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::Node* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_Node, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::CharacterData(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_DOM_CharacterData[] = {{110, 255, 1}};


static PyMethodDef methods_DOM_CharacterData[] = {
    {SIP_MLNAME_CAST(sipName_appendData), meth_DOM_CharacterData_appendData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_data), meth_DOM_CharacterData_data, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deleteData), meth_DOM_CharacterData_deleteData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_insertData), meth_DOM_CharacterData_insertData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_length), meth_DOM_CharacterData_length, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_replaceData), meth_DOM_CharacterData_replaceData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setData), meth_DOM_CharacterData_setData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_substringData), meth_DOM_CharacterData_substringData, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_CharacterData = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__CharacterData,
        {0}
    },
    {
        sipNameNr_CharacterData,
        {0, 255, 0},
        8, methods_DOM_CharacterData,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_DOM_CharacterData,
    0,
    init_type_DOM_CharacterData,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_CharacterData,
    assign_DOM_CharacterData,
    array_DOM_CharacterData,
    copy_DOM_CharacterData,
    release_DOM_CharacterData,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 1444 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"

#line 67 "/usr/share/python3-sip/PyQt4/QtCore/qchar.sip"
#include <qchar.h>
#line 1448 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1451 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"


extern "C" {static PyObject *meth_DOM_DOMString_insert(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_insert(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        DOM::DOMString* a0;
        uint a1;
        DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9u", &sipSelf, sipType_DOM_DOMString, &sipCpp, sipType_DOM_DOMString, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->insert(*a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DOMString, sipName_insert, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_find(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_find(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QChar* a0;
        int a0State = 0;
        int a1 = 0;
        const DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|i", &sipSelf, sipType_DOM_DOMString, &sipCpp, sipType_QChar,&a0, &a0State, &a1))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->find(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QChar *>(a0),sipType_QChar,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DOMString, sipName_find, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_reverseFind(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_reverseFind(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QChar* a0;
        int a0State = 0;
        int a1 = -1;
        const DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|i", &sipSelf, sipType_DOM_DOMString, &sipCpp, sipType_QChar,&a0, &a0State, &a1))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->reverseFind(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QChar *>(a0),sipType_QChar,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DOMString, sipName_reverseFind, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_substring(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_substring(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        uint a0;
        uint a1 = UINT_MAX;
        const DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bu|u", &sipSelf, sipType_DOM_DOMString, &sipCpp, &a0, &a1))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->substring(a0,a1));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DOMString, sipName_substring, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_length(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_length(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_DOMString, &sipCpp))
        {
            uint sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->length();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DOMString, sipName_length, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_truncate(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_truncate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        uint a0;
        DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bu", &sipSelf, sipType_DOM_DOMString, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->truncate(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DOMString, sipName_truncate, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_remove(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_remove(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        uint a0;
        int a1 = 1;
        DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bu|i", &sipSelf, sipType_DOM_DOMString, &sipCpp, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->remove(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DOMString, sipName_remove, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_split(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_split(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        uint a0;
        DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bu", &sipSelf, sipType_DOM_DOMString, &sipCpp, &a0))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->split(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DOMString, sipName_split, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_lower(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_lower(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_DOMString, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->lower());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DOMString, sipName_lower, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_upper(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_upper(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_DOMString, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->upper());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DOMString, sipName_upper, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_unicode(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_unicode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_DOMString, &sipCpp))
        {
            QChar*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->unicode();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QChar,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DOMString, sipName_unicode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_characters(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_characters(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_DOMString, &sipCpp))
        {
            QChar*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->characters();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QChar,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DOMString, sipName_characters, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_string(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_string(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_DOMString, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->string());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DOMString, sipName_string, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_toInt(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_toInt(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        const DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_DOMString, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toInt(&a0);
            Py_END_ALLOW_THREADS

            return sipBuildResult(0,"(ib)",sipRes,a0);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DOMString, sipName_toInt, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_toFloat(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_toFloat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        const DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_DOMString, &sipCpp))
        {
            float sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->toFloat(&a0);
            Py_END_ALLOW_THREADS

            return sipBuildResult(0,"(fb)",sipRes,a0);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DOMString, sipName_toFloat, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_percentage(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_percentage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_DOMString, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->percentage(a0);
            Py_END_ALLOW_THREADS

            return sipBuildResult(0,"(bi)",sipRes,a0);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DOMString, sipName_percentage, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_number(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_number(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "f", &a0))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(DOM::DOMString::number(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DOMString, sipName_number, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_copy(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_copy(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_DOMString, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->copy());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DOMString, sipName_copy, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_isNull(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_isNull(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_DOMString, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isNull();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DOMString, sipName_isNull, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_isEmpty(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_isEmpty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_DOMString, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isEmpty();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DOMString, sipName_isEmpty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_endsWith(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_endsWith(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        const DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_DOMString, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->endsWith(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DOMString, sipName_endsWith, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_startsWith(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_startsWith(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        const DOM::DOMString *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_DOMString, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->startsWith(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DOMString, sipName_startsWith, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMString_format(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMString_format(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const char* a0;
        PyObject *a0Keep;
        PyObject * a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "AAW", &a0Keep, &a0, &a1))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(DOM::DOMString::format(a0,a1));
            Py_END_ALLOW_THREADS

            Py_DECREF(a1);
            Py_DECREF(a0Keep);

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DOMString, sipName_format, NULL);

    return NULL;
}


extern "C" {static PyObject *slot_DOM_DOMString___getitem__(PyObject *,PyObject *);}
static PyObject *slot_DOM_DOMString___getitem__(PyObject *sipSelf,PyObject *sipArg)
{
    DOM::DOMString *sipCpp = reinterpret_cast<DOM::DOMString *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_DOM_DOMString));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        uint a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1u", &a0))
        {
            QChar*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QChar((*sipCpp)[a0]);
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QChar,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DOMString, sipName___getitem__, NULL);

    return 0;
}


extern "C" {static PyObject *slot_DOM_DOMString___add__(PyObject *,PyObject *);}
static PyObject *slot_DOM_DOMString___add__(PyObject *sipSelf,PyObject *sipArg)
{
    DOM::DOMString *sipCpp = reinterpret_cast<DOM::DOMString *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_DOM_DOMString));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_DOM_DOMString, &a0))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->DOM::DOMString::operator+(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the argument couldn't be parsed. */
    sipBadOperatorArg(sipSelf,sipArg,concat_slot);

    return NULL;
}


extern "C" {static PyObject *slot_DOM_DOMString___iadd__(PyObject *,PyObject *);}
static PyObject *slot_DOM_DOMString___iadd__(PyObject *sipSelf,PyObject *sipArg)
{
    DOM::DOMString *sipCpp = reinterpret_cast<DOM::DOMString *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_DOM_DOMString));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_DOM_DOMString, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->DOM::DOMString::operator+=(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    /* Raise an exception if the argument couldn't be parsed. */
    sipBadOperatorArg(sipSelf,sipArg,iconcat_slot);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_DOM_DOMString(void *, int);}
static void release_DOM_DOMString(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<DOM::DOMString *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_DOMString(void *, SIP_SSIZE_T, const void *);}
static void assign_DOM_DOMString(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<DOM::DOMString *>(sipDst)[sipDstIdx] = *reinterpret_cast<const DOM::DOMString *>(sipSrc);
}


extern "C" {static void *array_DOM_DOMString(SIP_SSIZE_T);}
static void *array_DOM_DOMString(SIP_SSIZE_T sipNrElem)
{
    return new DOM::DOMString[sipNrElem];
}


extern "C" {static void *copy_DOM_DOMString(const void *, SIP_SSIZE_T);}
static void *copy_DOM_DOMString(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new DOM::DOMString(reinterpret_cast<const DOM::DOMString *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_DOM_DOMString(sipSimpleWrapper *);}
static void dealloc_DOM_DOMString(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_DOMString(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_DOM_DOMString(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_DOM_DOMString(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    DOM::DOMString *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::DOMString();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const QChar* a0;
        int a0State = 0;
        uint a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J0u", sipType_QChar,&a0, &a0State, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::DOMString(a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QChar *>(a0),sipType_QChar,a0State);

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::DOMString(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipCpp;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "AA", &a0Keep, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::DOMString(a0);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            return sipCpp;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        uint a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "AAu", &a0Keep, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::DOMString(a0,a1);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

            return sipCpp;
        }
    }

    {
        const DOM::DOMString* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_DOMString, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::DOMString(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_DOM_DOMString[] = {
    {(void *)slot_DOM_DOMString___getitem__, getitem_slot},
    {(void *)slot_DOM_DOMString___add__, concat_slot},
    {(void *)slot_DOM_DOMString___iadd__, iconcat_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_DOM_DOMString[] = {
    {SIP_MLNAME_CAST(sipName_characters), meth_DOM_DOMString_characters, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_copy), meth_DOM_DOMString_copy, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_endsWith), meth_DOM_DOMString_endsWith, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_find), meth_DOM_DOMString_find, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_format), meth_DOM_DOMString_format, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_insert), meth_DOM_DOMString_insert, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isEmpty), meth_DOM_DOMString_isEmpty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isNull), meth_DOM_DOMString_isNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_length), meth_DOM_DOMString_length, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_lower), meth_DOM_DOMString_lower, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_number), meth_DOM_DOMString_number, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_percentage), meth_DOM_DOMString_percentage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_remove), meth_DOM_DOMString_remove, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_reverseFind), meth_DOM_DOMString_reverseFind, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_split), meth_DOM_DOMString_split, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_startsWith), meth_DOM_DOMString_startsWith, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_string), meth_DOM_DOMString_string, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_substring), meth_DOM_DOMString_substring, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toFloat), meth_DOM_DOMString_toFloat, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toInt), meth_DOM_DOMString_toInt, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_truncate), meth_DOM_DOMString_truncate, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_unicode), meth_DOM_DOMString_unicode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_upper), meth_DOM_DOMString_upper, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_DOMString = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__DOMString,
        {0}
    },
    {
        sipNameNr_DOMString,
        {0, 255, 0},
        23, methods_DOM_DOMString,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_DOM_DOMString,
    init_type_DOM_DOMString,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_DOMString,
    assign_DOM_DOMString,
    array_DOM_DOMString,
    copy_DOM_DOMString,
    release_DOM_DOMString,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 147 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 2422 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"

#line 61 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 2426 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"


extern "C" {static PyObject *meth_DOM_NodeList_length(PyObject *, PyObject *);}
static PyObject *meth_DOM_NodeList_length(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::NodeList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_NodeList, &sipCpp))
        {
            unsigned long sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->length();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NodeList, sipName_length, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_NodeList_item(PyObject *, PyObject *);}
static PyObject *meth_DOM_NodeList_item(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        unsigned long a0;
        const DOM::NodeList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_DOM_NodeList, &sipCpp, &a0))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->item(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NodeList, sipName_item, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_NodeList_isNull(PyObject *, PyObject *);}
static PyObject *meth_DOM_NodeList_isNull(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::NodeList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_NodeList, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isNull();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NodeList, sipName_isNull, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_DOM_NodeList(void *, int);}
static void release_DOM_NodeList(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<DOM::NodeList *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_NodeList(void *, SIP_SSIZE_T, const void *);}
static void assign_DOM_NodeList(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<DOM::NodeList *>(sipDst)[sipDstIdx] = *reinterpret_cast<const DOM::NodeList *>(sipSrc);
}


extern "C" {static void *array_DOM_NodeList(SIP_SSIZE_T);}
static void *array_DOM_NodeList(SIP_SSIZE_T sipNrElem)
{
    return new DOM::NodeList[sipNrElem];
}


extern "C" {static void *copy_DOM_NodeList(const void *, SIP_SSIZE_T);}
static void *copy_DOM_NodeList(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new DOM::NodeList(reinterpret_cast<const DOM::NodeList *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_DOM_NodeList(sipSimpleWrapper *);}
static void dealloc_DOM_NodeList(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_NodeList(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_DOM_NodeList(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_DOM_NodeList(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    DOM::NodeList *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::NodeList();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::NodeList* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_NodeList, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::NodeList(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_DOM_NodeList[] = {
    {SIP_MLNAME_CAST(sipName_isNull), meth_DOM_NodeList_isNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_item), meth_DOM_NodeList_item, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_length), meth_DOM_NodeList_length, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_NodeList = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__NodeList,
        {0}
    },
    {
        sipNameNr_NodeList,
        {0, 255, 0},
        3, methods_DOM_NodeList,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_DOM_NodeList,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_NodeList,
    assign_DOM_NodeList,
    array_DOM_NodeList,
    copy_DOM_NodeList,
    release_DOM_NodeList,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 2649 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"

#line 61 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 2653 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 2656 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"


extern "C" {static PyObject *meth_DOM_NamedNodeMap_length(PyObject *, PyObject *);}
static PyObject *meth_DOM_NamedNodeMap_length(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::NamedNodeMap *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_NamedNodeMap, &sipCpp))
        {
            unsigned long sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->length();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NamedNodeMap, sipName_length, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_NamedNodeMap_getNamedItem(PyObject *, PyObject *);}
static PyObject *meth_DOM_NamedNodeMap_getNamedItem(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        const DOM::NamedNodeMap *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_NamedNodeMap, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->getNamedItem(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NamedNodeMap, sipName_getNamedItem, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_NamedNodeMap_setNamedItem(PyObject *, PyObject *);}
static PyObject *meth_DOM_NamedNodeMap_setNamedItem(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Node* a0;
        DOM::NamedNodeMap *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_NamedNodeMap, &sipCpp, sipType_DOM_Node, &a0))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->setNamedItem(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NamedNodeMap, sipName_setNamedItem, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_NamedNodeMap_removeNamedItem(PyObject *, PyObject *);}
static PyObject *meth_DOM_NamedNodeMap_removeNamedItem(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        DOM::NamedNodeMap *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_NamedNodeMap, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->removeNamedItem(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NamedNodeMap, sipName_removeNamedItem, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_NamedNodeMap_item(PyObject *, PyObject *);}
static PyObject *meth_DOM_NamedNodeMap_item(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        unsigned long a0;
        const DOM::NamedNodeMap *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_DOM_NamedNodeMap, &sipCpp, &a0))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->item(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NamedNodeMap, sipName_item, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_NamedNodeMap_getNamedItemNS(PyObject *, PyObject *);}
static PyObject *meth_DOM_NamedNodeMap_getNamedItemNS(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        const DOM::DOMString* a1;
        const DOM::NamedNodeMap *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_DOM_NamedNodeMap, &sipCpp, sipType_DOM_DOMString, &a0, sipType_DOM_DOMString, &a1))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->getNamedItemNS(*a0,*a1));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NamedNodeMap, sipName_getNamedItemNS, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_NamedNodeMap_setNamedItemNS(PyObject *, PyObject *);}
static PyObject *meth_DOM_NamedNodeMap_setNamedItemNS(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Node* a0;
        DOM::NamedNodeMap *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_NamedNodeMap, &sipCpp, sipType_DOM_Node, &a0))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->setNamedItemNS(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NamedNodeMap, sipName_setNamedItemNS, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_NamedNodeMap_removeNamedItemNS(PyObject *, PyObject *);}
static PyObject *meth_DOM_NamedNodeMap_removeNamedItemNS(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        const DOM::DOMString* a1;
        DOM::NamedNodeMap *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_DOM_NamedNodeMap, &sipCpp, sipType_DOM_DOMString, &a0, sipType_DOM_DOMString, &a1))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->removeNamedItemNS(*a0,*a1));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NamedNodeMap, sipName_removeNamedItemNS, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_NamedNodeMap_isNull(PyObject *, PyObject *);}
static PyObject *meth_DOM_NamedNodeMap_isNull(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::NamedNodeMap *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_NamedNodeMap, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isNull();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_NamedNodeMap, sipName_isNull, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_DOM_NamedNodeMap(void *, int);}
static void release_DOM_NamedNodeMap(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<DOM::NamedNodeMap *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_NamedNodeMap(void *, SIP_SSIZE_T, const void *);}
static void assign_DOM_NamedNodeMap(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<DOM::NamedNodeMap *>(sipDst)[sipDstIdx] = *reinterpret_cast<const DOM::NamedNodeMap *>(sipSrc);
}


extern "C" {static void *array_DOM_NamedNodeMap(SIP_SSIZE_T);}
static void *array_DOM_NamedNodeMap(SIP_SSIZE_T sipNrElem)
{
    return new DOM::NamedNodeMap[sipNrElem];
}


extern "C" {static void *copy_DOM_NamedNodeMap(const void *, SIP_SSIZE_T);}
static void *copy_DOM_NamedNodeMap(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new DOM::NamedNodeMap(reinterpret_cast<const DOM::NamedNodeMap *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_DOM_NamedNodeMap(sipSimpleWrapper *);}
static void dealloc_DOM_NamedNodeMap(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_NamedNodeMap(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_DOM_NamedNodeMap(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_DOM_NamedNodeMap(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    DOM::NamedNodeMap *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::NamedNodeMap();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::NamedNodeMap* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_NamedNodeMap, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::NamedNodeMap(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_DOM_NamedNodeMap[] = {
    {SIP_MLNAME_CAST(sipName_getNamedItem), meth_DOM_NamedNodeMap_getNamedItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getNamedItemNS), meth_DOM_NamedNodeMap_getNamedItemNS, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isNull), meth_DOM_NamedNodeMap_isNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_item), meth_DOM_NamedNodeMap_item, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_length), meth_DOM_NamedNodeMap_length, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeNamedItem), meth_DOM_NamedNodeMap_removeNamedItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeNamedItemNS), meth_DOM_NamedNodeMap_removeNamedItemNS, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setNamedItem), meth_DOM_NamedNodeMap_setNamedItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setNamedItemNS), meth_DOM_NamedNodeMap_setNamedItemNS, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_NamedNodeMap = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__NamedNodeMap,
        {0}
    },
    {
        sipNameNr_NamedNodeMap,
        {0, 255, 0},
        9, methods_DOM_NamedNodeMap,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_DOM_NamedNodeMap,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_NamedNodeMap,
    assign_DOM_NamedNodeMap,
    array_DOM_NamedNodeMap,
    copy_DOM_NamedNodeMap,
    release_DOM_NamedNodeMap,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_exception.sip"
#include <dom_exception.h>
#line 3055 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"

#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 3059 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"


extern "C" {static PyObject *meth_DOM_DOMException_codeAsString(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMException_codeAsString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMException *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_DOMException, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->codeAsString());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "i", &a0))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(DOM::DOMException::codeAsString(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DOMException, sipName_codeAsString, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DOMException_isDOMExceptionCode(PyObject *, PyObject *);}
static PyObject *meth_DOM_DOMException_isDOMExceptionCode(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "i", &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = DOM::DOMException::isDOMExceptionCode(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DOMException, sipName_isDOMExceptionCode, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_DOM_DOMException(void *, int);}
static void release_DOM_DOMException(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<DOM::DOMException *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_DOM_DOMException(sipSimpleWrapper *);}
static void dealloc_DOM_DOMException(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_DOMException(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_DOM_DOMException(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_DOM_DOMException(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    DOM::DOMException *sipCpp = 0;

    {
        unsigned short a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "t", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::DOMException(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::DOMException* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_DOMException, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::DOMException(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_DOM_DOMException[] = {
    {SIP_MLNAME_CAST(sipName_codeAsString), meth_DOM_DOMException_codeAsString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isDOMExceptionCode), meth_DOM_DOMException_isDOMExceptionCode, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_DOM_DOMException[] = {
    {sipName_ABORT_ERR, static_cast<int>(DOM::DOMException::ABORT_ERR), 29},
    {sipName_DATA_CLONE_ERR, static_cast<int>(DOM::DOMException::DATA_CLONE_ERR), 29},
    {sipName_DOMSTRING_SIZE_ERR, static_cast<int>(DOM::DOMException::DOMSTRING_SIZE_ERR), 29},
    {sipName_ENCODING_ERR, static_cast<int>(DOM::DOMException::ENCODING_ERR), 29},
    {sipName_HIERARCHY_REQUEST_ERR, static_cast<int>(DOM::DOMException::HIERARCHY_REQUEST_ERR), 29},
    {sipName_INDEX_SIZE_ERR, static_cast<int>(DOM::DOMException::INDEX_SIZE_ERR), 29},
    {sipName_INUSE_ATTRIBUTE_ERR, static_cast<int>(DOM::DOMException::INUSE_ATTRIBUTE_ERR), 29},
    {sipName_INVALID_ACCESS_ERR, static_cast<int>(DOM::DOMException::INVALID_ACCESS_ERR), 29},
    {sipName_INVALID_CHARACTER_ERR, static_cast<int>(DOM::DOMException::INVALID_CHARACTER_ERR), 29},
    {sipName_INVALID_MODIFICATION_ERR, static_cast<int>(DOM::DOMException::INVALID_MODIFICATION_ERR), 29},
    {sipName_INVALID_STATE_ERR, static_cast<int>(DOM::DOMException::INVALID_STATE_ERR), 29},
    {sipName_NAMESPACE_ERR, static_cast<int>(DOM::DOMException::NAMESPACE_ERR), 29},
    {sipName_NETWORK_ERR, static_cast<int>(DOM::DOMException::NETWORK_ERR), 29},
    {sipName_NOT_FOUND_ERR, static_cast<int>(DOM::DOMException::NOT_FOUND_ERR), 29},
    {sipName_NOT_READABLE_ERR, static_cast<int>(DOM::DOMException::NOT_READABLE_ERR), 29},
    {sipName_NOT_SUPPORTED_ERR, static_cast<int>(DOM::DOMException::NOT_SUPPORTED_ERR), 29},
    {sipName_NO_DATA_ALLOWED_ERR, static_cast<int>(DOM::DOMException::NO_DATA_ALLOWED_ERR), 29},
    {sipName_NO_MODIFICATION_ALLOWED_ERR, static_cast<int>(DOM::DOMException::NO_MODIFICATION_ALLOWED_ERR), 29},
    {sipName_QUOTA_EXCEEDED_ERR, static_cast<int>(DOM::DOMException::QUOTA_EXCEEDED_ERR), 29},
    {sipName_SECURITY_ERR, static_cast<int>(DOM::DOMException::SECURITY_ERR), 29},
    {sipName_SYNTAX_ERR, static_cast<int>(DOM::DOMException::SYNTAX_ERR), 29},
    {sipName_TIMEOUT_ERR, static_cast<int>(DOM::DOMException::TIMEOUT_ERR), 29},
    {sipName_TYPE_MISMATCH_ERR, static_cast<int>(DOM::DOMException::TYPE_MISMATCH_ERR), 29},
    {sipName_URL_MISMATCH_ERR, static_cast<int>(DOM::DOMException::URL_MISMATCH_ERR), 29},
    {sipName_VALIDATION_ERR, static_cast<int>(DOM::DOMException::VALIDATION_ERR), 29},
    {sipName_WRONG_DOCUMENT_ERR, static_cast<int>(DOM::DOMException::WRONG_DOCUMENT_ERR), 29},
};


extern "C" {static PyObject *varget_DOM_DOMException_code(void *, PyObject *, PyObject *);}
static PyObject *varget_DOM_DOMException_code(void *sipSelf, PyObject *, PyObject *)
{
    unsigned short sipVal;
    DOM::DOMException *sipCpp = reinterpret_cast<DOM::DOMException *>(sipSelf);

    sipVal = sipCpp->code;

#if PY_MAJOR_VERSION >= 3
    return PyLong_FromUnsignedLong(sipVal);
#else
    return PyInt_FromLong(sipVal);
#endif
}


extern "C" {static int varset_DOM_DOMException_code(void *, PyObject *, PyObject *);}
static int varset_DOM_DOMException_code(void *sipSelf, PyObject *sipPy, PyObject *)
{
    unsigned short sipVal;
    DOM::DOMException *sipCpp = reinterpret_cast<DOM::DOMException *>(sipSelf);

    sipVal = (unsigned short)sipLong_AsUnsignedLong(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->code = sipVal;

    return 0;
}

sipVariableDef variables_DOM_DOMException[] = {
    {InstanceVariable, sipName_code, (PyMethodDef *)varget_DOM_DOMException_code, (PyMethodDef *)varset_DOM_DOMException_code, NULL, NULL},
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_DOMException = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__DOMException,
        {0}
    },
    {
        sipNameNr_DOMException,
        {0, 255, 0},
        2, methods_DOM_DOMException,
        26, enummembers_DOM_DOMException,
        1, variables_DOM_DOMException,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_DOM_DOMException,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_DOMException,
    0,
    0,
    0,
    release_DOM_DOMException,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 233 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_element.sip"
#include <dom_element.h>
#line 3315 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"

#line 61 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 3319 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 147 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 3322 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 3325 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_value.sip"
#include <css_value.h>
#line 3328 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 50 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_element.sip"
#include <dom_element.h>
#line 3331 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 3334 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 3337 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 44 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 3340 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 3343 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 55 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 3346 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 3349 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"


extern "C" {static PyObject *meth_DOM_Element_tagName(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_tagName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Element *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Element, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->tagName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_tagName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_getAttribute(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_getAttribute(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Element, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->getAttribute(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_getAttribute, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_setAttribute(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_setAttribute(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        const DOM::DOMString* a1;
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_DOM_Element, &sipCpp, sipType_DOM_DOMString, &a0, sipType_DOM_DOMString, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAttribute(*a0,*a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_setAttribute, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_removeAttribute(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_removeAttribute(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Element, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeAttribute(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_removeAttribute, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_getAttributeNode(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_getAttributeNode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Element, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            DOM::Attr*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Attr(sipCpp->getAttributeNode(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Attr,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_getAttributeNode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_setAttributeNode(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_setAttributeNode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Attr* a0;
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Element, &sipCpp, sipType_DOM_Attr, &a0))
        {
            DOM::Attr*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Attr(sipCpp->setAttributeNode(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Attr,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_setAttributeNode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_removeAttributeNode(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_removeAttributeNode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Attr* a0;
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Element, &sipCpp, sipType_DOM_Attr, &a0))
        {
            DOM::Attr*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Attr(sipCpp->removeAttributeNode(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Attr,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_removeAttributeNode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_getElementsByTagName(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_getElementsByTagName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Element, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            DOM::NodeList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::NodeList(sipCpp->getElementsByTagName(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_NodeList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_getElementsByTagName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_getElementsByTagNameNS(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_getElementsByTagNameNS(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        const DOM::DOMString* a1;
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_DOM_Element, &sipCpp, sipType_DOM_DOMString, &a0, sipType_DOM_DOMString, &a1))
        {
            DOM::NodeList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::NodeList(sipCpp->getElementsByTagNameNS(*a0,*a1));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_NodeList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_getElementsByTagNameNS, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_getElementsByClassName(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_getElementsByClassName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Element, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            DOM::NodeList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::NodeList(sipCpp->getElementsByClassName(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_NodeList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_getElementsByClassName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_getAttributeNS(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_getAttributeNS(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        const DOM::DOMString* a1;
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_DOM_Element, &sipCpp, sipType_DOM_DOMString, &a0, sipType_DOM_DOMString, &a1))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->getAttributeNS(*a0,*a1));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_getAttributeNS, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_setAttributeNS(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_setAttributeNS(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        const DOM::DOMString* a1;
        const DOM::DOMString* a2;
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J9", &sipSelf, sipType_DOM_Element, &sipCpp, sipType_DOM_DOMString, &a0, sipType_DOM_DOMString, &a1, sipType_DOM_DOMString, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAttributeNS(*a0,*a1,*a2);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_setAttributeNS, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_removeAttributeNS(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_removeAttributeNS(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        const DOM::DOMString* a1;
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_DOM_Element, &sipCpp, sipType_DOM_DOMString, &a0, sipType_DOM_DOMString, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeAttributeNS(*a0,*a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_removeAttributeNS, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_getAttributeNodeNS(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_getAttributeNodeNS(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        const DOM::DOMString* a1;
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_DOM_Element, &sipCpp, sipType_DOM_DOMString, &a0, sipType_DOM_DOMString, &a1))
        {
            DOM::Attr*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Attr(sipCpp->getAttributeNodeNS(*a0,*a1));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Attr,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_getAttributeNodeNS, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_setAttributeNodeNS(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_setAttributeNodeNS(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Attr* a0;
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Element, &sipCpp, sipType_DOM_Attr, &a0))
        {
            DOM::Attr*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Attr(sipCpp->setAttributeNodeNS(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Attr,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_setAttributeNodeNS, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_hasAttribute(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_hasAttribute(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Element, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasAttribute(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_hasAttribute, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_hasAttributeNS(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_hasAttributeNS(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        const DOM::DOMString* a1;
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_DOM_Element, &sipCpp, sipType_DOM_DOMString, &a0, sipType_DOM_DOMString, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasAttributeNS(*a0,*a1);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_hasAttributeNS, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_style(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_style(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        DOM::Element *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Element, &sipCpp))
        {
            DOM::CSSStyleDeclaration*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::CSSStyleDeclaration(sipCpp->style());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_CSSStyleDeclaration,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_style, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_firstElementChild(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_firstElementChild(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Element *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Element, &sipCpp))
        {
            DOM::Element*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Element(sipCpp->firstElementChild());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Element,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_firstElementChild, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_lastElementChild(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_lastElementChild(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Element *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Element, &sipCpp))
        {
            DOM::Element*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Element(sipCpp->lastElementChild());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Element,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_lastElementChild, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_previousElementSibling(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_previousElementSibling(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Element *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Element, &sipCpp))
        {
            DOM::Element*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Element(sipCpp->previousElementSibling());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Element,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_previousElementSibling, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_nextElementSibling(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_nextElementSibling(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Element *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Element, &sipCpp))
        {
            DOM::Element*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Element(sipCpp->nextElementSibling());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Element,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_nextElementSibling, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_childElementCount(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_childElementCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Element *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Element, &sipCpp))
        {
            unsigned long sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->childElementCount();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_childElementCount, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_isHTMLElement(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_isHTMLElement(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Element *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Element, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isHTMLElement();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_isHTMLElement, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_form(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_form(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Element *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Element, &sipCpp))
        {
            DOM::Element*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Element(sipCpp->form());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Element,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_form, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_khtmlValidAttrName(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_khtmlValidAttrName(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_DOM_DOMString, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = DOM::Element::khtmlValidAttrName(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_khtmlValidAttrName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_khtmlValidPrefix(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_khtmlValidPrefix(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_DOM_DOMString, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = DOM::Element::khtmlValidPrefix(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_khtmlValidPrefix, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_khtmlValidQualifiedName(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_khtmlValidQualifiedName(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_DOM_DOMString, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = DOM::Element::khtmlValidQualifiedName(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_khtmlValidQualifiedName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_khtmlMalformedQualifiedName(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_khtmlMalformedQualifiedName(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_DOM_DOMString, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = DOM::Element::khtmlMalformedQualifiedName(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_khtmlMalformedQualifiedName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_khtmlMalformedPrefix(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_khtmlMalformedPrefix(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_DOM_DOMString, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = DOM::Element::khtmlMalformedPrefix(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_khtmlMalformedPrefix, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_querySelector(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_querySelector(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        const DOM::Element *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Element, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            DOM::Element*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Element(sipCpp->querySelector(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Element,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_querySelector, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Element_querySelectorAll(PyObject *, PyObject *);}
static PyObject *meth_DOM_Element_querySelectorAll(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        const DOM::Element *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Element, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            DOM::NodeList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::NodeList(sipCpp->querySelectorAll(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_NodeList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_querySelectorAll, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_DOM_Element(void *, int);}
static void release_DOM_Element(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<DOM::Element *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_Element(void *, SIP_SSIZE_T, const void *);}
static void assign_DOM_Element(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<DOM::Element *>(sipDst)[sipDstIdx] = *reinterpret_cast<const DOM::Element *>(sipSrc);
}


extern "C" {static void *array_DOM_Element(SIP_SSIZE_T);}
static void *array_DOM_Element(SIP_SSIZE_T sipNrElem)
{
    return new DOM::Element[sipNrElem];
}


extern "C" {static void *copy_DOM_Element(const void *, SIP_SSIZE_T);}
static void *copy_DOM_Element(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new DOM::Element(reinterpret_cast<const DOM::Element *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_DOM_Element(sipSimpleWrapper *);}
static void dealloc_DOM_Element(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_Element(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_DOM_Element(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_DOM_Element(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    DOM::Element *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Element();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::Node* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_Node, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Element(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::Element* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_Element, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Element(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_DOM_Element[] = {{110, 255, 1}};


static PyMethodDef methods_DOM_Element[] = {
    {SIP_MLNAME_CAST(sipName_childElementCount), meth_DOM_Element_childElementCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_firstElementChild), meth_DOM_Element_firstElementChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_form), meth_DOM_Element_form, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getAttribute), meth_DOM_Element_getAttribute, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getAttributeNS), meth_DOM_Element_getAttributeNS, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getAttributeNode), meth_DOM_Element_getAttributeNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getAttributeNodeNS), meth_DOM_Element_getAttributeNodeNS, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getElementsByClassName), meth_DOM_Element_getElementsByClassName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getElementsByTagName), meth_DOM_Element_getElementsByTagName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getElementsByTagNameNS), meth_DOM_Element_getElementsByTagNameNS, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasAttribute), meth_DOM_Element_hasAttribute, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasAttributeNS), meth_DOM_Element_hasAttributeNS, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isHTMLElement), meth_DOM_Element_isHTMLElement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_khtmlMalformedPrefix), meth_DOM_Element_khtmlMalformedPrefix, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_khtmlMalformedQualifiedName), meth_DOM_Element_khtmlMalformedQualifiedName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_khtmlValidAttrName), meth_DOM_Element_khtmlValidAttrName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_khtmlValidPrefix), meth_DOM_Element_khtmlValidPrefix, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_khtmlValidQualifiedName), meth_DOM_Element_khtmlValidQualifiedName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_lastElementChild), meth_DOM_Element_lastElementChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_nextElementSibling), meth_DOM_Element_nextElementSibling, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_previousElementSibling), meth_DOM_Element_previousElementSibling, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_querySelector), meth_DOM_Element_querySelector, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_querySelectorAll), meth_DOM_Element_querySelectorAll, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeAttribute), meth_DOM_Element_removeAttribute, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeAttributeNS), meth_DOM_Element_removeAttributeNS, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeAttributeNode), meth_DOM_Element_removeAttributeNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAttribute), meth_DOM_Element_setAttribute, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAttributeNS), meth_DOM_Element_setAttributeNS, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAttributeNode), meth_DOM_Element_setAttributeNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAttributeNodeNS), meth_DOM_Element_setAttributeNodeNS, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_style), meth_DOM_Element_style, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_tagName), meth_DOM_Element_tagName, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_Element = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__Element,
        {0}
    },
    {
        sipNameNr_Element,
        {0, 255, 0},
        32, methods_DOM_Element,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_DOM_Element,
    0,
    init_type_DOM_Element,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_Element,
    assign_DOM_Element,
    array_DOM_Element,
    copy_DOM_Element,
    release_DOM_Element,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 50 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_element.sip"
#include <dom_element.h>
#line 4422 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"

#line 61 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 4426 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 233 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_element.sip"
#include <dom_element.h>
#line 4429 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 4432 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 4435 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 4438 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 44 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 4441 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 4444 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 55 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 4447 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 4450 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 147 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 4453 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"


extern "C" {static PyObject *meth_DOM_Attr_name(PyObject *, PyObject *);}
static PyObject *meth_DOM_Attr_name(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Attr *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Attr, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->name());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Attr, sipName_name, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Attr_specified(PyObject *, PyObject *);}
static PyObject *meth_DOM_Attr_specified(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Attr *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Attr, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->specified();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Attr, sipName_specified, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Attr_value(PyObject *, PyObject *);}
static PyObject *meth_DOM_Attr_value(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Attr *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Attr, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->value());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Attr, sipName_value, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Attr_setValue(PyObject *, PyObject *);}
static PyObject *meth_DOM_Attr_setValue(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        DOM::Attr *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Attr, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setValue(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Attr, sipName_setValue, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Attr_ownerElement(PyObject *, PyObject *);}
static PyObject *meth_DOM_Attr_ownerElement(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Attr *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Attr, &sipCpp))
        {
            DOM::Element*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Element(sipCpp->ownerElement());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Element,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Attr, sipName_ownerElement, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_DOM_Attr(void *, int);}
static void release_DOM_Attr(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<DOM::Attr *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_Attr(void *, SIP_SSIZE_T, const void *);}
static void assign_DOM_Attr(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<DOM::Attr *>(sipDst)[sipDstIdx] = *reinterpret_cast<const DOM::Attr *>(sipSrc);
}


extern "C" {static void *array_DOM_Attr(SIP_SSIZE_T);}
static void *array_DOM_Attr(SIP_SSIZE_T sipNrElem)
{
    return new DOM::Attr[sipNrElem];
}


extern "C" {static void *copy_DOM_Attr(const void *, SIP_SSIZE_T);}
static void *copy_DOM_Attr(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new DOM::Attr(reinterpret_cast<const DOM::Attr *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_DOM_Attr(sipSimpleWrapper *);}
static void dealloc_DOM_Attr(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_Attr(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_DOM_Attr(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_DOM_Attr(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    DOM::Attr *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Attr();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::Node* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_Node, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Attr(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::Attr* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_Attr, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Attr(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_DOM_Attr[] = {{110, 255, 1}};


static PyMethodDef methods_DOM_Attr[] = {
    {SIP_MLNAME_CAST(sipName_name), meth_DOM_Attr_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ownerElement), meth_DOM_Attr_ownerElement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setValue), meth_DOM_Attr_setValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_specified), meth_DOM_Attr_specified, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_value), meth_DOM_Attr_value, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_Attr = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_DOM__Attr,
        {0}
    },
    {
        sipNameNr_Attr,
        {0, 255, 0},
        5, methods_DOM_Attr,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_DOM_Attr,
    0,
    init_type_DOM_Attr,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_Attr,
    assign_DOM_Attr,
    array_DOM_Attr,
    copy_DOM_Attr,
    release_DOM_Attr,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 149 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 4748 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"

#line 61 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 4752 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 4755 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 4758 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 4761 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 4764 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 44 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 4767 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 4770 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 55 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 4773 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 147 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 4776 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"


extern "C" {static PyObject *meth_DOM_DocumentType_name(PyObject *, PyObject *);}
static PyObject *meth_DOM_DocumentType_name(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DocumentType *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_DocumentType, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->name());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DocumentType, sipName_name, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DocumentType_entities(PyObject *, PyObject *);}
static PyObject *meth_DOM_DocumentType_entities(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DocumentType *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_DocumentType, &sipCpp))
        {
            DOM::NamedNodeMap*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::NamedNodeMap(sipCpp->entities());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_NamedNodeMap,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DocumentType, sipName_entities, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DocumentType_notations(PyObject *, PyObject *);}
static PyObject *meth_DOM_DocumentType_notations(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DocumentType *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_DocumentType, &sipCpp))
        {
            DOM::NamedNodeMap*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::NamedNodeMap(sipCpp->notations());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_NamedNodeMap,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DocumentType, sipName_notations, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DocumentType_publicId(PyObject *, PyObject *);}
static PyObject *meth_DOM_DocumentType_publicId(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DocumentType *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_DocumentType, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->publicId());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DocumentType, sipName_publicId, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DocumentType_systemId(PyObject *, PyObject *);}
static PyObject *meth_DOM_DocumentType_systemId(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DocumentType *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_DocumentType, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->systemId());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DocumentType, sipName_systemId, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DocumentType_internalSubset(PyObject *, PyObject *);}
static PyObject *meth_DOM_DocumentType_internalSubset(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DocumentType *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_DocumentType, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->internalSubset());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DocumentType, sipName_internalSubset, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_DOM_DocumentType(void *, int);}
static void release_DOM_DocumentType(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<DOM::DocumentType *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_DocumentType(void *, SIP_SSIZE_T, const void *);}
static void assign_DOM_DocumentType(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<DOM::DocumentType *>(sipDst)[sipDstIdx] = *reinterpret_cast<const DOM::DocumentType *>(sipSrc);
}


extern "C" {static void *array_DOM_DocumentType(SIP_SSIZE_T);}
static void *array_DOM_DocumentType(SIP_SSIZE_T sipNrElem)
{
    return new DOM::DocumentType[sipNrElem];
}


extern "C" {static void *copy_DOM_DocumentType(const void *, SIP_SSIZE_T);}
static void *copy_DOM_DocumentType(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new DOM::DocumentType(reinterpret_cast<const DOM::DocumentType *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_DOM_DocumentType(sipSimpleWrapper *);}
static void dealloc_DOM_DocumentType(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_DocumentType(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_DOM_DocumentType(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_DOM_DocumentType(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    DOM::DocumentType *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::DocumentType();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::DocumentType* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_DocumentType, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::DocumentType(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::Node* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_Node, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::DocumentType(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_DOM_DocumentType[] = {{110, 255, 1}};


static PyMethodDef methods_DOM_DocumentType[] = {
    {SIP_MLNAME_CAST(sipName_entities), meth_DOM_DocumentType_entities, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_internalSubset), meth_DOM_DocumentType_internalSubset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_name), meth_DOM_DocumentType_name, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_notations), meth_DOM_DocumentType_notations, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_publicId), meth_DOM_DocumentType_publicId, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_systemId), meth_DOM_DocumentType_systemId, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_DocumentType = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__DocumentType,
        {0}
    },
    {
        sipNameNr_DocumentType,
        {0, 255, 0},
        6, methods_DOM_DocumentType,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_DOM_DocumentType,
    0,
    init_type_DOM_DocumentType,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_DocumentType,
    assign_DOM_DocumentType,
    array_DOM_DocumentType,
    copy_DOM_DocumentType,
    release_DOM_DocumentType,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 127 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 5099 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"

#line 61 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 5103 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 147 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 5106 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 5109 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 233 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_element.sip"
#include <dom_element.h>
#line 5112 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 5115 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 5118 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 44 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 5121 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 5124 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 55 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 5127 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 5130 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"


extern "C" {static PyObject *meth_DOM_DocumentFragment_querySelector(PyObject *, PyObject *);}
static PyObject *meth_DOM_DocumentFragment_querySelector(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        const DOM::DocumentFragment *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_DocumentFragment, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            DOM::Element*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Element(sipCpp->querySelector(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Element,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DocumentFragment, sipName_querySelector, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_DocumentFragment_querySelectorAll(PyObject *, PyObject *);}
static PyObject *meth_DOM_DocumentFragment_querySelectorAll(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        const DOM::DocumentFragment *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_DocumentFragment, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            DOM::NodeList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::NodeList(sipCpp->querySelectorAll(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_NodeList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_DocumentFragment, sipName_querySelectorAll, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_DOM_DocumentFragment(void *, int);}
static void release_DOM_DocumentFragment(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<DOM::DocumentFragment *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_DocumentFragment(void *, SIP_SSIZE_T, const void *);}
static void assign_DOM_DocumentFragment(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<DOM::DocumentFragment *>(sipDst)[sipDstIdx] = *reinterpret_cast<const DOM::DocumentFragment *>(sipSrc);
}


extern "C" {static void *array_DOM_DocumentFragment(SIP_SSIZE_T);}
static void *array_DOM_DocumentFragment(SIP_SSIZE_T sipNrElem)
{
    return new DOM::DocumentFragment[sipNrElem];
}


extern "C" {static void *copy_DOM_DocumentFragment(const void *, SIP_SSIZE_T);}
static void *copy_DOM_DocumentFragment(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new DOM::DocumentFragment(reinterpret_cast<const DOM::DocumentFragment *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_DOM_DocumentFragment(sipSimpleWrapper *);}
static void dealloc_DOM_DocumentFragment(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_DocumentFragment(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_DOM_DocumentFragment(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_DOM_DocumentFragment(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    DOM::DocumentFragment *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::DocumentFragment();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::DocumentFragment* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_DocumentFragment, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::DocumentFragment(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::Node* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_Node, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::DocumentFragment(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_DOM_DocumentFragment[] = {{110, 255, 1}};


static PyMethodDef methods_DOM_DocumentFragment[] = {
    {SIP_MLNAME_CAST(sipName_querySelector), meth_DOM_DocumentFragment_querySelector, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_querySelectorAll), meth_DOM_DocumentFragment_querySelectorAll, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_DocumentFragment = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__DocumentFragment,
        {0}
    },
    {
        sipNameNr_DocumentFragment,
        {0, 255, 0},
        2, methods_DOM_DocumentFragment,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_DOM_DocumentFragment,
    0,
    init_type_DOM_DocumentFragment,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_DocumentFragment,
    assign_DOM_DocumentFragment,
    array_DOM_DocumentFragment,
    copy_DOM_DocumentFragment,
    release_DOM_DocumentFragment,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 55 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 5343 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"

#line 61 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 5347 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 147 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 5350 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 5353 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 233 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_element.sip"
#include <dom_element.h>
#line 5356 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_value.sip"
#include <css_value.h>
#line 5359 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/khtmlview.sip"
#include <khtmlview.h>
#line 5362 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_stylesheet.sip"
#include <css_stylesheet.h>
#line 5365 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 110 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/css_stylesheet.sip"
#include <css_stylesheet.h>
#line 5368 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom2_views.sip"
#include <dom2_views.h>
#line 5371 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 44 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 5374 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 121 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom2_traversal.sip"
#include <dom2_traversal.h>
#line 5377 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 56 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom2_traversal.sip"
#include <dom2_traversal.h>
#line 5380 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom2_traversal.sip"
#include <dom2_traversal.h>
#line 5383 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 56 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom2_range.sip"
#include <dom2_range.h>
#line 5386 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 71 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_xml.sip"
#include <dom_xml.h>
#line 5389 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 50 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_element.sip"
#include <dom_element.h>
#line 5392 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 113 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_xml.sip"
#include <dom_xml.h>
#line 5395 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_xml.sip"
#include <dom_xml.h>
#line 5398 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 56 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_text.sip"
#include <dom_text.h>
#line 5401 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 76 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_text.sip"
#include <dom_text.h>
#line 5404 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 127 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 5407 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 5410 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 149 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 5413 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 5416 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 5419 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 5422 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 5425 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"


extern "C" {static PyObject *meth_DOM_Document_doctype(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_doctype(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Document, &sipCpp))
        {
            DOM::DocumentType*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DocumentType(sipCpp->doctype());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DocumentType,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_doctype, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_implementation(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_implementation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Document, &sipCpp))
        {
            DOM::DOMImplementation*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMImplementation(sipCpp->implementation());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMImplementation,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_implementation, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_documentElement(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_documentElement(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Document, &sipCpp))
        {
            DOM::Element*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Element(sipCpp->documentElement());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Element,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_documentElement, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_createElement(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_createElement(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Document, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            DOM::Element*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Element(sipCpp->createElement(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Element,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_createElement, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_createElementNS(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_createElementNS(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        const DOM::DOMString* a1;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_DOM_Document, &sipCpp, sipType_DOM_DOMString, &a0, sipType_DOM_DOMString, &a1))
        {
            DOM::Element*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Element(sipCpp->createElementNS(*a0,*a1));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Element,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_createElementNS, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_createDocumentFragment(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_createDocumentFragment(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Document, &sipCpp))
        {
            DOM::DocumentFragment*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DocumentFragment(sipCpp->createDocumentFragment());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DocumentFragment,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_createDocumentFragment, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_createTextNode(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_createTextNode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Document, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            DOM::Text*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Text(sipCpp->createTextNode(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Text,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_createTextNode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_createComment(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_createComment(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Document, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            DOM::Comment*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Comment(sipCpp->createComment(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Comment,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_createComment, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_createCDATASection(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_createCDATASection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Document, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            DOM::CDATASection*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::CDATASection(sipCpp->createCDATASection(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_CDATASection,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_createCDATASection, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_createProcessingInstruction(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_createProcessingInstruction(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        const DOM::DOMString* a1;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_DOM_Document, &sipCpp, sipType_DOM_DOMString, &a0, sipType_DOM_DOMString, &a1))
        {
            DOM::ProcessingInstruction*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::ProcessingInstruction(sipCpp->createProcessingInstruction(*a0,*a1));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_ProcessingInstruction,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_createProcessingInstruction, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_createAttribute(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_createAttribute(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Document, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            DOM::Attr*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Attr(sipCpp->createAttribute(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Attr,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_createAttribute, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_createAttributeNS(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_createAttributeNS(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        const DOM::DOMString* a1;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_DOM_Document, &sipCpp, sipType_DOM_DOMString, &a0, sipType_DOM_DOMString, &a1))
        {
            DOM::Attr*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Attr(sipCpp->createAttributeNS(*a0,*a1));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Attr,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_createAttributeNS, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_createEntityReference(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_createEntityReference(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Document, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            DOM::EntityReference*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::EntityReference(sipCpp->createEntityReference(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_EntityReference,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_createEntityReference, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_getElementById(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_getElementById(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        const DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Document, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            DOM::Element*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Element(sipCpp->getElementById(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Element,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_getElementById, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_getElementsByTagName(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_getElementsByTagName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Document, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            DOM::NodeList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::NodeList(sipCpp->getElementsByTagName(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_NodeList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_getElementsByTagName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_getElementsByTagNameNS(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_getElementsByTagNameNS(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        const DOM::DOMString* a1;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_DOM_Document, &sipCpp, sipType_DOM_DOMString, &a0, sipType_DOM_DOMString, &a1))
        {
            DOM::NodeList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::NodeList(sipCpp->getElementsByTagNameNS(*a0,*a1));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_NodeList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_getElementsByTagNameNS, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_getElementsByClassName(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_getElementsByClassName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Document, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            DOM::NodeList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::NodeList(sipCpp->getElementsByClassName(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_NodeList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_getElementsByClassName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_importNode(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_importNode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Node* a0;
        bool a1;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9b", &sipSelf, sipType_DOM_Document, &sipCpp, sipType_DOM_Node, &a0, &a1))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->importNode(*a0,a1));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_importNode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_isHTMLDocument(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_isHTMLDocument(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Document, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isHTMLDocument();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_isHTMLDocument, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_createRange(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_createRange(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Document, &sipCpp))
        {
            DOM::Range*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Range(sipCpp->createRange());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Range,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_createRange, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_createNodeIterator(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_createNodeIterator(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        DOM::Node* a0;
        unsigned long a1;
        DOM::NodeFilter* a2;
        bool a3;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9mJ9b", &sipSelf, sipType_DOM_Document, &sipCpp, sipType_DOM_Node, &a0, &a1, sipType_DOM_NodeFilter, &a2, &a3))
        {
            DOM::NodeIterator*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::NodeIterator(sipCpp->createNodeIterator(*a0,a1,*a2,a3));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_NodeIterator,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_createNodeIterator, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_createTreeWalker(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_createTreeWalker(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        DOM::Node* a0;
        unsigned long a1;
        DOM::NodeFilter* a2;
        bool a3;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9mJ9b", &sipSelf, sipType_DOM_Document, &sipCpp, sipType_DOM_Node, &a0, &a1, sipType_DOM_NodeFilter, &a2, &a3))
        {
            DOM::TreeWalker*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::TreeWalker(sipCpp->createTreeWalker(*a0,a1,*a2,a3));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_TreeWalker,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_createTreeWalker, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_createEvent(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_createEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Document, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            DOM::Event*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Event(sipCpp->createEvent(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Event,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_createEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_defaultView(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_defaultView(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Document, &sipCpp))
        {
            DOM::AbstractView*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::AbstractView(sipCpp->defaultView());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_AbstractView,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_defaultView, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_styleSheets(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_styleSheets(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Document, &sipCpp))
        {
            DOM::StyleSheetList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::StyleSheetList(sipCpp->styleSheets());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_StyleSheetList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_styleSheets, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_preferredStylesheetSet(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_preferredStylesheetSet(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Document, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->preferredStylesheetSet());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_preferredStylesheetSet, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_selectedStylesheetSet(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_selectedStylesheetSet(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Document, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->selectedStylesheetSet());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_selectedStylesheetSet, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_setSelectedStylesheetSet(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_setSelectedStylesheetSet(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Document, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSelectedStylesheetSet(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_setSelectedStylesheetSet, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_addStyleSheet(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_addStyleSheet(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::StyleSheet* a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Document, &sipCpp, sipType_DOM_StyleSheet, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addStyleSheet(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_addStyleSheet, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_removeStyleSheet(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_removeStyleSheet(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::StyleSheet* a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Document, &sipCpp, sipType_DOM_StyleSheet, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeStyleSheet(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_removeStyleSheet, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_view(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_view(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Document, &sipCpp))
        {
            KHTMLView*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->view();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KHTMLView,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_view, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_getOverrideStyle(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_getOverrideStyle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Element* a0;
        const DOM::DOMString* a1;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_DOM_Document, &sipCpp, sipType_DOM_Element, &a0, sipType_DOM_DOMString, &a1))
        {
            DOM::CSSStyleDeclaration*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::CSSStyleDeclaration(sipCpp->getOverrideStyle(*a0,*a1));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_CSSStyleDeclaration,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_getOverrideStyle, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_async(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_async(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Document, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->async();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_async, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_setAsync(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_setAsync(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_DOM_Document, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAsync(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_setAsync, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_abort(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_abort(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Document, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->abort();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_abort, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_load(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_load(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Document, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->load(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_load, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_loadXML(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_loadXML(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Document, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->loadXML(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_loadXML, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_designMode(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_designMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Document, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->designMode();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_designMode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_setDesignMode(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_setDesignMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_DOM_Document, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDesignMode(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_setDesignMode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_completeURL(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_completeURL(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Document, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->completeURL(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_completeURL, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_toString(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_toString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Document, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->toString());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_toString, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_execCommand(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_execCommand(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        bool a1;
        const DOM::DOMString* a2;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9bJ9", &sipSelf, sipType_DOM_Document, &sipCpp, sipType_DOM_DOMString, &a0, &a1, sipType_DOM_DOMString, &a2))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->execCommand(*a0,a1,*a2);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_execCommand, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_queryCommandEnabled(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_queryCommandEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Document, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->queryCommandEnabled(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_queryCommandEnabled, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_queryCommandIndeterm(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_queryCommandIndeterm(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Document, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->queryCommandIndeterm(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_queryCommandIndeterm, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_queryCommandState(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_queryCommandState(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Document, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->queryCommandState(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_queryCommandState, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_queryCommandSupported(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_queryCommandSupported(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Document, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->queryCommandSupported(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_queryCommandSupported, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_queryCommandValue(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_queryCommandValue(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Document, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->queryCommandValue(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_queryCommandValue, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_updateRendering(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_updateRendering(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Document, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->updateRendering();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_updateRendering, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_querySelector(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_querySelector(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        const DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Document, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            DOM::Element*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Element(sipCpp->querySelector(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Element,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_querySelector, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Document_querySelectorAll(PyObject *, PyObject *);}
static PyObject *meth_DOM_Document_querySelectorAll(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        const DOM::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Document, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            DOM::NodeList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::NodeList(sipCpp->querySelectorAll(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_NodeList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_querySelectorAll, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_DOM_Document(void *, int);}
static void release_DOM_Document(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<DOM::Document *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_Document(void *, SIP_SSIZE_T, const void *);}
static void assign_DOM_Document(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<DOM::Document *>(sipDst)[sipDstIdx] = *reinterpret_cast<const DOM::Document *>(sipSrc);
}


extern "C" {static void *array_DOM_Document(SIP_SSIZE_T);}
static void *array_DOM_Document(SIP_SSIZE_T sipNrElem)
{
    return new DOM::Document[sipNrElem];
}


extern "C" {static void *copy_DOM_Document(const void *, SIP_SSIZE_T);}
static void *copy_DOM_Document(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new DOM::Document(reinterpret_cast<const DOM::Document *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_DOM_Document(sipSimpleWrapper *);}
static void dealloc_DOM_Document(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_Document(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_DOM_Document(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_DOM_Document(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    DOM::Document *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Document();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        bool a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "b", &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Document(a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::Document* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_Document, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Document(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::Node* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_Node, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Document(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_DOM_Document[] = {{110, 255, 1}};


static PyMethodDef methods_DOM_Document[] = {
    {SIP_MLNAME_CAST(sipName_abort), meth_DOM_Document_abort, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addStyleSheet), meth_DOM_Document_addStyleSheet, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_async), meth_DOM_Document_async, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_completeURL), meth_DOM_Document_completeURL, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createAttribute), meth_DOM_Document_createAttribute, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createAttributeNS), meth_DOM_Document_createAttributeNS, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createCDATASection), meth_DOM_Document_createCDATASection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createComment), meth_DOM_Document_createComment, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createDocumentFragment), meth_DOM_Document_createDocumentFragment, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createElement), meth_DOM_Document_createElement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createElementNS), meth_DOM_Document_createElementNS, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createEntityReference), meth_DOM_Document_createEntityReference, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createEvent), meth_DOM_Document_createEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createNodeIterator), meth_DOM_Document_createNodeIterator, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createProcessingInstruction), meth_DOM_Document_createProcessingInstruction, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createRange), meth_DOM_Document_createRange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createTextNode), meth_DOM_Document_createTextNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createTreeWalker), meth_DOM_Document_createTreeWalker, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_defaultView), meth_DOM_Document_defaultView, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_designMode), meth_DOM_Document_designMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_doctype), meth_DOM_Document_doctype, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_documentElement), meth_DOM_Document_documentElement, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_execCommand), meth_DOM_Document_execCommand, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getElementById), meth_DOM_Document_getElementById, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getElementsByClassName), meth_DOM_Document_getElementsByClassName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getElementsByTagName), meth_DOM_Document_getElementsByTagName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getElementsByTagNameNS), meth_DOM_Document_getElementsByTagNameNS, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getOverrideStyle), meth_DOM_Document_getOverrideStyle, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_implementation), meth_DOM_Document_implementation, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_importNode), meth_DOM_Document_importNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isHTMLDocument), meth_DOM_Document_isHTMLDocument, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_load), meth_DOM_Document_load, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_loadXML), meth_DOM_Document_loadXML, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_preferredStylesheetSet), meth_DOM_Document_preferredStylesheetSet, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_queryCommandEnabled), meth_DOM_Document_queryCommandEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_queryCommandIndeterm), meth_DOM_Document_queryCommandIndeterm, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_queryCommandState), meth_DOM_Document_queryCommandState, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_queryCommandSupported), meth_DOM_Document_queryCommandSupported, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_queryCommandValue), meth_DOM_Document_queryCommandValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_querySelector), meth_DOM_Document_querySelector, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_querySelectorAll), meth_DOM_Document_querySelectorAll, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeStyleSheet), meth_DOM_Document_removeStyleSheet, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectedStylesheetSet), meth_DOM_Document_selectedStylesheetSet, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAsync), meth_DOM_Document_setAsync, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDesignMode), meth_DOM_Document_setDesignMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSelectedStylesheetSet), meth_DOM_Document_setSelectedStylesheetSet, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_styleSheets), meth_DOM_Document_styleSheets, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toString), meth_DOM_Document_toString, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_updateRendering), meth_DOM_Document_updateRendering, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_view), meth_DOM_Document_view, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_Document = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__Document,
        {0}
    },
    {
        sipNameNr_Document,
        {0, 255, 0},
        50, methods_DOM_Document,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_DOM_Document,
    0,
    init_type_DOM_Document,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_Document,
    assign_DOM_Document,
    array_DOM_Document,
    copy_DOM_Document,
    release_DOM_Document,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 61 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 7032 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"

#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 7036 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 7039 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_string.sip"
#include <dom_string.h>
#line 7042 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 44 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 7045 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom2_events.sip"
#include <dom2_events.h>
#line 7048 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 55 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_doc.sip"
#include <dom_doc.h>
#line 7051 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 32 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 7054 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"
#line 147 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/khtml/dom_node.sip"
#include <dom_node.h>
#line 7057 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/khtml/sipkhtmlpart4.cpp"


extern "C" {static PyObject *meth_DOM_Node_nodeName(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_nodeName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Node, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->nodeName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_nodeName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_nodeValue(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_nodeValue(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Node, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->nodeValue());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_nodeValue, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_setNodeValue(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_setNodeValue(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Node, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setNodeValue(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_setNodeValue, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_nodeType(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_nodeType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Node, &sipCpp))
        {
            unsigned short sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->nodeType();
            Py_END_ALLOW_THREADS

#if PY_MAJOR_VERSION >= 3
            return PyLong_FromUnsignedLong(sipRes);
#else
            return PyInt_FromLong(sipRes);
#endif
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_nodeType, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_parentNode(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_parentNode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Node, &sipCpp))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->parentNode());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_parentNode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_childNodes(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_childNodes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Node, &sipCpp))
        {
            DOM::NodeList*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::NodeList(sipCpp->childNodes());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_NodeList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_childNodes, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_firstChild(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_firstChild(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Node, &sipCpp))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->firstChild());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_firstChild, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_lastChild(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_lastChild(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Node, &sipCpp))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->lastChild());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_lastChild, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_previousSibling(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_previousSibling(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Node, &sipCpp))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->previousSibling());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_previousSibling, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_nextSibling(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_nextSibling(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Node, &sipCpp))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->nextSibling());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_nextSibling, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_attributes(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_attributes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Node, &sipCpp))
        {
            DOM::NamedNodeMap*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::NamedNodeMap(sipCpp->attributes());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_NamedNodeMap,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_attributes, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_ownerDocument(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_ownerDocument(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Node, &sipCpp))
        {
            DOM::Document*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Document(sipCpp->ownerDocument());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Document,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_ownerDocument, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_insertBefore(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_insertBefore(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Node* a0;
        const DOM::Node* a1;
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_DOM_Node, &sipCpp, sipType_DOM_Node, &a0, sipType_DOM_Node, &a1))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->insertBefore(*a0,*a1));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_insertBefore, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_replaceChild(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_replaceChild(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Node* a0;
        const DOM::Node* a1;
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_DOM_Node, &sipCpp, sipType_DOM_Node, &a0, sipType_DOM_Node, &a1))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->replaceChild(*a0,*a1));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_replaceChild, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_removeChild(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_removeChild(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Node* a0;
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Node, &sipCpp, sipType_DOM_Node, &a0))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->removeChild(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_removeChild, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_appendChild(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_appendChild(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Node* a0;
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Node, &sipCpp, sipType_DOM_Node, &a0))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->appendChild(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_appendChild, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_hasChildNodes(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_hasChildNodes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Node, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasChildNodes();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_hasChildNodes, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_cloneNode(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_cloneNode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_DOM_Node, &sipCpp, &a0))
        {
            DOM::Node*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::Node(sipCpp->cloneNode(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_Node,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_cloneNode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_normalize(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_normalize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Node, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->normalize();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_normalize, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_isSupported(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_isSupported(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        const DOM::DOMString* a1;
        const DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_DOM_Node, &sipCpp, sipType_DOM_DOMString, &a0, sipType_DOM_DOMString, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isSupported(*a0,*a1);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_isSupported, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_namespaceURI(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_namespaceURI(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Node, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->namespaceURI());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_namespaceURI, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_prefix(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_prefix(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Node, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->prefix());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_prefix, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_setPrefix(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_setPrefix(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Node, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPrefix(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_setPrefix, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_localName(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_localName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Node, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->localName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_localName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_hasAttributes(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_hasAttributes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Node, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasAttributes();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_hasAttributes, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_addEventListener(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_addEventListener(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        DOM::EventListener* a1;
        bool a2;
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J8b", &sipSelf, sipType_DOM_Node, &sipCpp, sipType_DOM_DOMString, &a0, sipType_DOM_EventListener, &a1, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->addEventListener(*a0,a1,a2);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_addEventListener, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_removeEventListener(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_removeEventListener(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        DOM::EventListener* a1;
        bool a2;
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J8b", &sipSelf, sipType_DOM_Node, &sipCpp, sipType_DOM_DOMString, &a0, sipType_DOM_EventListener, &a1, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->removeEventListener(*a0,a1,a2);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_removeEventListener, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_dispatchEvent(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_dispatchEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Event* a0;
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Node, &sipCpp, sipType_DOM_Event, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->dispatchEvent(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_dispatchEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_textContent(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_textContent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Node, &sipCpp))
        {
            DOM::DOMString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new DOM::DOMString(sipCpp->textContent());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_DOM_DOMString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_textContent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_setTextContent(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_setTextContent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::DOMString* a0;
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Node, &sipCpp, sipType_DOM_DOMString, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setTextContent(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_setTextContent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_compareDocumentPosition(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_compareDocumentPosition(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Node* a0;
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_DOM_Node, &sipCpp, sipType_DOM_Node, &a0))
        {
            uint sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->compareDocumentPosition(*a0);
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_compareDocumentPosition, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_elementId(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_elementId(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Node, &sipCpp))
        {
            quint32 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->elementId();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_elementId, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_isNull(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_isNull(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Node, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isNull();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_isNull, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_index(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_index(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Node, &sipCpp))
        {
            unsigned long sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->index();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_index, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_toHTML(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_toHTML(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Node, &sipCpp))
        {
            QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QString(sipCpp->toHTML());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_toHTML, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_applyChanges(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_applyChanges(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Node, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->applyChanges();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_applyChanges, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_getCursor(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_getCursor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        int a2;
        int a3;
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_DOM_Node, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->getCursor(a0,a1,a2,a3);
            Py_END_ALLOW_THREADS

            return sipBuildResult(0,"(iii)",a1,a2,a3);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_getCursor, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_DOM_Node_getRect(PyObject *, PyObject *);}
static PyObject *meth_DOM_Node_getRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        DOM::Node *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_DOM_Node, &sipCpp))
        {
            QRect*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QRect(sipCpp->getRect());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Node, sipName_getRect, NULL);

    return NULL;
}


extern "C" {static PyObject *slot_DOM_Node___ne__(PyObject *,PyObject *);}
static PyObject *slot_DOM_Node___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    DOM::Node *sipCpp = reinterpret_cast<DOM::Node *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_DOM_Node));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const DOM::Node* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_DOM_Node, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->DOM::Node::operator!=(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_khtml,ne_slot,sipType_DOM_Node,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_DOM_Node___eq__(PyObject *,PyObject *);}
static PyObject *slot_DOM_Node___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    DOM::Node *sipCpp = reinterpret_cast<DOM::Node *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_DOM_Node));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const DOM::Node* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_DOM_Node, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->DOM::Node::operator==(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_khtml,eq_slot,sipType_DOM_Node,sipSelf,sipArg);
}


/* Call the instance's destructor. */
extern "C" {static void release_DOM_Node(void *, int);}
static void release_DOM_Node(void *sipCppV,int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast<DOM::Node *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_DOM_Node(void *, SIP_SSIZE_T, const void *);}
static void assign_DOM_Node(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<DOM::Node *>(sipDst)[sipDstIdx] = *reinterpret_cast<const DOM::Node *>(sipSrc);
}


extern "C" {static void *array_DOM_Node(SIP_SSIZE_T);}
static void *array_DOM_Node(SIP_SSIZE_T sipNrElem)
{
    return new DOM::Node[sipNrElem];
}


extern "C" {static void *copy_DOM_Node(const void *, SIP_SSIZE_T);}
static void *copy_DOM_Node(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new DOM::Node(reinterpret_cast<const DOM::Node *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_DOM_Node(sipSimpleWrapper *);}
static void dealloc_DOM_Node(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_DOM_Node(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_DOM_Node(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_DOM_Node(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    DOM::Node *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Node();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const DOM::Node* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_DOM_Node, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new DOM::Node(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_DOM_Node[] = {
    {(void *)slot_DOM_Node___ne__, ne_slot},
    {(void *)slot_DOM_Node___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_DOM_Node[] = {
    {SIP_MLNAME_CAST(sipName_addEventListener), meth_DOM_Node_addEventListener, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_appendChild), meth_DOM_Node_appendChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_applyChanges), meth_DOM_Node_applyChanges, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_attributes), meth_DOM_Node_attributes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childNodes), meth_DOM_Node_childNodes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_cloneNode), meth_DOM_Node_cloneNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_compareDocumentPosition), meth_DOM_Node_compareDocumentPosition, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dispatchEvent), meth_DOM_Node_dispatchEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_elementId), meth_DOM_Node_elementId, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_firstChild), meth_DOM_Node_firstChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getCursor), meth_DOM_Node_getCursor, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_getRect), meth_DOM_Node_getRect, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasAttributes), meth_DOM_Node_hasAttributes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasChildNodes), meth_DOM_Node_hasChildNodes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_index), meth_DOM_Node_index, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_insertBefore), meth_DOM_Node_insertBefore, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isNull), meth_DOM_Node_isNull, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSupported), meth_DOM_Node_isSupported, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_lastChild), meth_DOM_Node_lastChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_localName), meth_DOM_Node_localName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_namespaceURI), meth_DOM_Node_namespaceURI, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_nextSibling), meth_DOM_Node_nextSibling, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_nodeName), meth_DOM_Node_nodeName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_nodeType), meth_DOM_Node_nodeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_nodeValue), meth_DOM_Node_nodeValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_normalize), meth_DOM_Node_normalize, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_ownerDocument), meth_DOM_Node_ownerDocument, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parentNode), meth_DOM_Node_parentNode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_prefix), meth_DOM_Node_prefix, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_previousSibling), meth_DOM_Node_previousSibling, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeChild), meth_DOM_Node_removeChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeEventListener), meth_DOM_Node_removeEventListener, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_replaceChild), meth_DOM_Node_replaceChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setNodeValue), meth_DOM_Node_setNodeValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPrefix), meth_DOM_Node_setPrefix, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setTextContent), meth_DOM_Node_setTextContent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_textContent), meth_DOM_Node_textContent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toHTML), meth_DOM_Node_toHTML, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_DOM_Node[] = {
    {sipName_ATTRIBUTE_NODE, static_cast<int>(DOM::Node::ATTRIBUTE_NODE), 112},
    {sipName_CDATA_SECTION_NODE, static_cast<int>(DOM::Node::CDATA_SECTION_NODE), 112},
    {sipName_COMMENT_NODE, static_cast<int>(DOM::Node::COMMENT_NODE), 112},
    {sipName_DOCUMENT_FRAGMENT_NODE, static_cast<int>(DOM::Node::DOCUMENT_FRAGMENT_NODE), 112},
    {sipName_DOCUMENT_NODE, static_cast<int>(DOM::Node::DOCUMENT_NODE), 112},
    {sipName_DOCUMENT_POSITION_CONTAINED_BY, static_cast<int>(DOM::Node::DOCUMENT_POSITION_CONTAINED_BY), 111},
    {sipName_DOCUMENT_POSITION_CONTAINS, static_cast<int>(DOM::Node::DOCUMENT_POSITION_CONTAINS), 111},
    {sipName_DOCUMENT_POSITION_DISCONNECTED, static_cast<int>(DOM::Node::DOCUMENT_POSITION_DISCONNECTED), 111},
    {sipName_DOCUMENT_POSITION_FOLLOWING, static_cast<int>(DOM::Node::DOCUMENT_POSITION_FOLLOWING), 111},
    {sipName_DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, static_cast<int>(DOM::Node::DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC), 111},
    {sipName_DOCUMENT_POSITION_PRECEDING, static_cast<int>(DOM::Node::DOCUMENT_POSITION_PRECEDING), 111},
    {sipName_DOCUMENT_TYPE_NODE, static_cast<int>(DOM::Node::DOCUMENT_TYPE_NODE), 112},
    {sipName_ELEMENT_NODE, static_cast<int>(DOM::Node::ELEMENT_NODE), 112},
    {sipName_ENTITY_NODE, static_cast<int>(DOM::Node::ENTITY_NODE), 112},
    {sipName_ENTITY_REFERENCE_NODE, static_cast<int>(DOM::Node::ENTITY_REFERENCE_NODE), 112},
    {sipName_NOTATION_NODE, static_cast<int>(DOM::Node::NOTATION_NODE), 112},
    {sipName_PROCESSING_INSTRUCTION_NODE, static_cast<int>(DOM::Node::PROCESSING_INSTRUCTION_NODE), 112},
    {sipName_TEXT_NODE, static_cast<int>(DOM::Node::TEXT_NODE), 112},
    {sipName_XPATH_NAMESPACE_NODE, static_cast<int>(DOM::Node::XPATH_NAMESPACE_NODE), 112},
};


pyqt4ClassTypeDef sipTypeDef_khtml_DOM_Node = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_DOM__Node,
        {0}
    },
    {
        sipNameNr_Node,
        {0, 255, 0},
        38, methods_DOM_Node,
        19, enummembers_DOM_Node,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_DOM_Node,
    init_type_DOM_Node,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_DOM_Node,
    assign_DOM_Node,
    array_DOM_Node,
    copy_DOM_Node,
    release_DOM_Node,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};
