home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2012 January / maximum-cd-2012-01.iso / DiscContents / digsby_setup.exe / lib / libxml2.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2011-10-05  |  269.5 KB  |  8,311 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.6)
  3.  
  4. from libxmlmods import libxml2mod
  5. import types
  6. import sys
  7.  
  8. class libxmlError(Exception):
  9.     pass
  10.  
  11.  
  12. def pos_id(o):
  13.     i = id(o)
  14.     if i < 0:
  15.         return sys.maxint - i
  16.     return i
  17.  
  18.  
  19. class treeError(libxmlError):
  20.     
  21.     def __init__(self, msg):
  22.         self.msg = msg
  23.  
  24.     
  25.     def __str__(self):
  26.         return self.msg
  27.  
  28.  
  29.  
  30. class parserError(libxmlError):
  31.     
  32.     def __init__(self, msg):
  33.         self.msg = msg
  34.  
  35.     
  36.     def __str__(self):
  37.         return self.msg
  38.  
  39.  
  40.  
  41. class uriError(libxmlError):
  42.     
  43.     def __init__(self, msg):
  44.         self.msg = msg
  45.  
  46.     
  47.     def __str__(self):
  48.         return self.msg
  49.  
  50.  
  51.  
  52. class xpathError(libxmlError):
  53.     
  54.     def __init__(self, msg):
  55.         self.msg = msg
  56.  
  57.     
  58.     def __str__(self):
  59.         return self.msg
  60.  
  61.  
  62.  
  63. class ioWrapper:
  64.     
  65.     def __init__(self, _obj):
  66.         self._ioWrapper__io = _obj
  67.         self._o = None
  68.  
  69.     
  70.     def io_close(self):
  71.         if self._ioWrapper__io == None:
  72.             return -1
  73.         self._ioWrapper__io.close()
  74.         self._ioWrapper__io = None
  75.         return 0
  76.  
  77.     
  78.     def io_flush(self):
  79.         if self._ioWrapper__io == None:
  80.             return -1
  81.         self._ioWrapper__io.flush()
  82.         return 0
  83.  
  84.     
  85.     def io_read(self, len = -1):
  86.         if self._ioWrapper__io == None:
  87.             return -1
  88.         if len < 0:
  89.             return self._ioWrapper__io.read()
  90.         return self._ioWrapper__io.read(len)
  91.  
  92.     
  93.     def io_write(self, str, len = -1):
  94.         if self._ioWrapper__io == None:
  95.             return -1
  96.         if len < 0:
  97.             return self._ioWrapper__io.write(str)
  98.         return self._ioWrapper__io.write(str, len)
  99.  
  100.  
  101.  
  102. class ioReadWrapper(ioWrapper):
  103.     
  104.     def __init__(self, _obj, enc = ''):
  105.         ioWrapper.__init__(self, _obj)
  106.         self._o = libxml2mod.xmlCreateInputBuffer(self, enc)
  107.  
  108.     
  109.     def __del__(self):
  110.         print '__del__'
  111.         self.io_close()
  112.         if self._o != None:
  113.             libxml2mod.xmlFreeParserInputBuffer(self._o)
  114.         
  115.         self._o = None
  116.  
  117.     
  118.     def close(self):
  119.         self.io_close()
  120.         if self._o != None:
  121.             libxml2mod.xmlFreeParserInputBuffer(self._o)
  122.         
  123.         self._o = None
  124.  
  125.  
  126.  
  127. class ioWriteWrapper(ioWrapper):
  128.     
  129.     def __init__(self, _obj, enc = ''):
  130.         if type(_obj) == type(''):
  131.             print 'write io from a string'
  132.             self.o = None
  133.         elif type(_obj) == types.InstanceType:
  134.             print 'write io from instance of %s' % _obj.__class__
  135.             ioWrapper.__init__(self, _obj)
  136.             self._o = libxml2mod.xmlCreateOutputBuffer(self, enc)
  137.         else:
  138.             file = libxml2mod.outputBufferGetPythonFile(_obj)
  139.             if file != None:
  140.                 ioWrapper.__init__(self, file)
  141.             else:
  142.                 ioWrapper.__init__(self, _obj)
  143.             self._o = _obj
  144.  
  145.     
  146.     def __del__(self):
  147.         self.io_close()
  148.         if self._o != None:
  149.             libxml2mod.xmlOutputBufferClose(self._o)
  150.         
  151.         self._o = None
  152.  
  153.     
  154.     def flush(self):
  155.         self.io_flush()
  156.         if self._o != None:
  157.             libxml2mod.xmlOutputBufferClose(self._o)
  158.         
  159.         self._o = None
  160.  
  161.     
  162.     def close(self):
  163.         self.io_flush()
  164.         if self._o != None:
  165.             libxml2mod.xmlOutputBufferClose(self._o)
  166.         
  167.         self._o = None
  168.  
  169.  
  170.  
  171. class SAXCallback:
  172.     
  173.     def startDocument(self):
  174.         pass
  175.  
  176.     
  177.     def endDocument(self):
  178.         pass
  179.  
  180.     
  181.     def startElement(self, tag, attrs):
  182.         pass
  183.  
  184.     
  185.     def endElement(self, tag):
  186.         pass
  187.  
  188.     
  189.     def characters(self, data):
  190.         pass
  191.  
  192.     
  193.     def cdataBlock(self, data):
  194.         pass
  195.  
  196.     
  197.     def reference(self, name):
  198.         pass
  199.  
  200.     
  201.     def ignorableWhitespace(self, data):
  202.         pass
  203.  
  204.     
  205.     def processingInstruction(self, target, data):
  206.         pass
  207.  
  208.     
  209.     def comment(self, content):
  210.         pass
  211.  
  212.     
  213.     def externalSubset(self, name, externalID, systemID):
  214.         pass
  215.  
  216.     
  217.     def internalSubset(self, name, externalID, systemID):
  218.         pass
  219.  
  220.     
  221.     def entityDecl(self, name, type, externalID, systemID, content):
  222.         pass
  223.  
  224.     
  225.     def notationDecl(self, name, externalID, systemID):
  226.         pass
  227.  
  228.     
  229.     def attributeDecl(self, elem, name, type, defi, defaultValue, nameList):
  230.         pass
  231.  
  232.     
  233.     def elementDecl(self, name, type, content):
  234.         pass
  235.  
  236.     
  237.     def entityDecl(self, name, publicId, systemID, notationName):
  238.         pass
  239.  
  240.     
  241.     def warning(self, msg):
  242.         pass
  243.  
  244.     
  245.     def error(self, msg):
  246.         raise parserError(msg)
  247.  
  248.     
  249.     def fatalError(self, msg):
  250.         raise parserError(msg)
  251.  
  252.  
  253.  
  254. class xmlCore:
  255.     
  256.     def __init__(self, _obj = None):
  257.         if _obj != None:
  258.             self._o = _obj
  259.             return None
  260.         self._o = None
  261.  
  262.     
  263.     def __eq__(self, other):
  264.         if other == None:
  265.             return False
  266.         ret = libxml2mod.compareNodesEqual(self._o, other._o)
  267.         if ret == None:
  268.             return False
  269.         return ret == True
  270.  
  271.     
  272.     def __ne__(self, other):
  273.         if other == None:
  274.             return True
  275.         ret = libxml2mod.compareNodesEqual(self._o, other._o)
  276.         return not ret
  277.  
  278.     
  279.     def __hash__(self):
  280.         ret = libxml2mod.nodeHash(self._o)
  281.         return ret
  282.  
  283.     
  284.     def __str__(self):
  285.         return self.serialize()
  286.  
  287.     
  288.     def get_parent(self):
  289.         ret = libxml2mod.parent(self._o)
  290.         if ret == None:
  291.             return None
  292.         return xmlNode(_obj = ret)
  293.  
  294.     
  295.     def get_children(self):
  296.         ret = libxml2mod.children(self._o)
  297.         if ret == None:
  298.             return None
  299.         return xmlNode(_obj = ret)
  300.  
  301.     
  302.     def get_last(self):
  303.         ret = libxml2mod.last(self._o)
  304.         if ret == None:
  305.             return None
  306.         return xmlNode(_obj = ret)
  307.  
  308.     
  309.     def get_next(self):
  310.         ret = libxml2mod.next(self._o)
  311.         if ret == None:
  312.             return None
  313.         return xmlNode(_obj = ret)
  314.  
  315.     
  316.     def get_properties(self):
  317.         ret = libxml2mod.properties(self._o)
  318.         if ret == None:
  319.             return None
  320.         return xmlAttr(_obj = ret)
  321.  
  322.     
  323.     def get_prev(self):
  324.         ret = libxml2mod.prev(self._o)
  325.         if ret == None:
  326.             return None
  327.         return xmlNode(_obj = ret)
  328.  
  329.     
  330.     def get_content(self):
  331.         return libxml2mod.xmlNodeGetContent(self._o)
  332.  
  333.     getContent = get_content
  334.     
  335.     def get_name(self):
  336.         return libxml2mod.name(self._o)
  337.  
  338.     
  339.     def get_type(self):
  340.         return libxml2mod.type(self._o)
  341.  
  342.     
  343.     def get_doc(self):
  344.         ret = libxml2mod.doc(self._o)
  345.         if ret == None:
  346.             if self.type in ('document_xml', 'document_html'):
  347.                 return xmlDoc(_obj = self._o)
  348.             return None
  349.         ret == None
  350.         return xmlDoc(_obj = ret)
  351.  
  352.     import sys
  353.     if float(sys.version[0:3]) < 2.2:
  354.         
  355.         def __getattr__(self, attr):
  356.             if attr == 'parent':
  357.                 ret = libxml2mod.parent(self._o)
  358.                 if ret == None:
  359.                     return None
  360.                 return xmlNode(_obj = ret)
  361.             if attr == 'properties':
  362.                 ret = libxml2mod.properties(self._o)
  363.                 if ret == None:
  364.                     return None
  365.                 return xmlAttr(_obj = ret)
  366.             if attr == 'children':
  367.                 ret = libxml2mod.children(self._o)
  368.                 if ret == None:
  369.                     return None
  370.                 return xmlNode(_obj = ret)
  371.             if attr == 'last':
  372.                 ret = libxml2mod.last(self._o)
  373.                 if ret == None:
  374.                     return None
  375.                 return xmlNode(_obj = ret)
  376.             if attr == 'next':
  377.                 ret = libxml2mod.next(self._o)
  378.                 if ret == None:
  379.                     return None
  380.                 return xmlNode(_obj = ret)
  381.             if attr == 'prev':
  382.                 ret = libxml2mod.prev(self._o)
  383.                 if ret == None:
  384.                     return None
  385.                 return xmlNode(_obj = ret)
  386.             if attr == 'content':
  387.                 return libxml2mod.xmlNodeGetContent(self._o)
  388.             if attr == 'name':
  389.                 return libxml2mod.name(self._o)
  390.             if attr == 'type':
  391.                 return libxml2mod.type(self._o)
  392.             if attr == 'doc':
  393.                 ret = libxml2mod.doc(self._o)
  394.                 if ret == None:
  395.                     if self.type == 'document_xml' or self.type == 'document_html':
  396.                         return xmlDoc(_obj = self._o)
  397.                     return None
  398.                 ret == None
  399.                 return xmlDoc(_obj = ret)
  400.             raise AttributeError, attr
  401.  
  402.     else:
  403.         parent = property(get_parent, None, None, 'Parent node')
  404.         children = property(get_children, None, None, 'First child node')
  405.         last = property(get_last, None, None, 'Last sibling node')
  406.         next = property(get_next, None, None, 'Next sibling node')
  407.         prev = property(get_prev, None, None, 'Previous sibling node')
  408.         properties = property(get_properties, None, None, 'List of properies')
  409.         content = property(get_content, None, None, 'Content of this node')
  410.         name = property(get_name, None, None, 'Node name')
  411.         type = property(get_type, None, None, 'Node type')
  412.         doc = property(get_doc, None, None, 'The document this node belongs to')
  413.     
  414.     def serialize(self, encoding = None, format = 0):
  415.         return libxml2mod.serializeNode(self._o, encoding, format)
  416.  
  417.     
  418.     def saveTo(self, file, encoding = None, format = 0):
  419.         return libxml2mod.saveNodeTo(self._o, file, encoding, format)
  420.  
  421.     
  422.     def c14nMemory(self, nodes = None, exclusive = 0, prefixes = None, with_comments = 0):
  423.         if nodes:
  424.             nodes = map((lambda n: n._o), nodes)
  425.         
  426.         return libxml2mod.xmlC14NDocDumpMemory(self.get_doc()._o, nodes, exclusive != 0, prefixes, with_comments != 0)
  427.  
  428.     
  429.     def c14nSaveTo(self, file, nodes = None, exclusive = 0, prefixes = None, with_comments = 0):
  430.         if nodes:
  431.             nodes = map((lambda n: n._o), nodes)
  432.         
  433.         return libxml2mod.xmlC14NDocSaveTo(self.get_doc()._o, nodes, exclusive != 0, prefixes, with_comments != 0, file)
  434.  
  435.     
  436.     def xpathEval(self, expr):
  437.         doc = self.doc
  438.         if doc == None:
  439.             return None
  440.         ctxt = doc.xpathNewContext()
  441.         ctxt.setContextNode(self)
  442.         res = ctxt.xpathEval(expr)
  443.         ctxt.xpathFreeContext()
  444.         return res
  445.  
  446.     
  447.     def xpathEval2(self, expr):
  448.         return self.xpathEval(expr)
  449.  
  450.     
  451.     def removeNsDef(self, href):
  452.         ret = libxml2mod.xmlNodeRemoveNsDef(self._o, href)
  453.         if ret is None:
  454.             return None
  455.         _xmlCore__tmp = xmlNs(_obj = ret)
  456.         return _xmlCore__tmp
  457.  
  458.     
  459.     def walk_depth_first(self):
  460.         return xmlCoreDepthFirstItertor(self)
  461.  
  462.     
  463.     def walk_breadth_first(self):
  464.         return xmlCoreBreadthFirstItertor(self)
  465.  
  466.     __iter__ = walk_depth_first
  467.     
  468.     def free(self):
  469.         
  470.         try:
  471.             self.doc._ctxt.xpathFreeContext()
  472.         except:
  473.             pass
  474.  
  475.         libxml2mod.xmlFreeDoc(self._o)
  476.  
  477.  
  478.  
  479. class xmlCoreDepthFirstItertor:
  480.     
  481.     def __init__(self, node):
  482.         self.node = node
  483.         self.parents = []
  484.  
  485.     
  486.     def __iter__(self):
  487.         return self
  488.  
  489.     
  490.     def next(self):
  491.         while self.node:
  492.             ret = self.node
  493.             self.parents.append(self.node)
  494.             self.node = self.node.children
  495.             return ret
  496.             
  497.             try:
  498.                 parent = self.parents.pop()
  499.             except IndexError:
  500.                 raise StopIteration
  501.  
  502.             self.node = parent.next
  503.             continue
  504.             return None
  505.  
  506.  
  507.  
  508. class xmlCoreBreadthFirstItertor:
  509.     
  510.     def __init__(self, node):
  511.         self.node = node
  512.         self.parents = []
  513.  
  514.     
  515.     def __iter__(self):
  516.         return self
  517.  
  518.     
  519.     def next(self):
  520.         while self.node:
  521.             ret = self.node
  522.             self.parents.append(self.node)
  523.             self.node = self.node.next
  524.             return ret
  525.             
  526.             try:
  527.                 parent = self.parents.pop()
  528.             except IndexError:
  529.                 raise StopIteration
  530.  
  531.             self.node = parent.children
  532.             continue
  533.             return None
  534.  
  535.  
  536.  
  537. def nodeWrap(o):
  538.     name = libxml2mod.type(o)
  539.     if name == 'element' or name == 'text':
  540.         return xmlNode(_obj = o)
  541.     if name == 'attribute':
  542.         return xmlAttr(_obj = o)
  543.     if name[0:8] == 'document':
  544.         return xmlDoc(_obj = o)
  545.     if name == 'namespace':
  546.         return xmlNs(_obj = o)
  547.     if name == 'elem_decl':
  548.         return xmlElement(_obj = o)
  549.     if name == 'attribute_decl':
  550.         return xmlAttribute(_obj = o)
  551.     if name == 'entity_decl':
  552.         return xmlEntity(_obj = o)
  553.     if name == 'dtd':
  554.         return xmlDtd(_obj = o)
  555.     return xmlNode(_obj = o)
  556.  
  557.  
  558. def xpathObjectRet(o):
  559.     otype = type(o)
  560.     if otype == type([]):
  561.         ret = map(xpathObjectRet, o)
  562.         return ret
  563.     if otype == type(()):
  564.         ret = map(xpathObjectRet, o)
  565.         return tuple(ret)
  566.     if otype == type('') and otype == type(0) or otype == type(0):
  567.         return o
  568.     return nodeWrap(o)
  569.  
  570.  
  571. def registerXPathFunction(ctxt, name, ns_uri, f):
  572.     ret = libxml2mod.xmlRegisterXPathFunction(ctxt, name, ns_uri, f)
  573.  
  574. PARSER_LOADDTD = 1
  575. PARSER_DEFAULTATTRS = 2
  576. PARSER_VALIDATE = 3
  577. PARSER_SUBST_ENTITIES = 4
  578. PARSER_SEVERITY_VALIDITY_WARNING = 1
  579. PARSER_SEVERITY_VALIDITY_ERROR = 2
  580. PARSER_SEVERITY_WARNING = 3
  581. PARSER_SEVERITY_ERROR = 4
  582.  
  583. def registerErrorHandler(f, ctx):
  584.     import sys
  585.     if not sys.modules.has_key('libxslt'):
  586.         ret = libxml2mod.xmlRegisterErrorHandler(f, ctx)
  587.     else:
  588.         import libxslt
  589.         ret = libxslt.registerErrorHandler(f, ctx)
  590.     return ret
  591.  
  592.  
  593. class parserCtxtCore:
  594.     
  595.     def __init__(self, _obj = None):
  596.         if _obj != None:
  597.             self._o = _obj
  598.             return None
  599.         self._o = None
  600.  
  601.     
  602.     def __del__(self):
  603.         if self._o != None:
  604.             libxml2mod.xmlFreeParserCtxt(self._o)
  605.         
  606.         self._o = None
  607.  
  608.     
  609.     def setErrorHandler(self, f, arg):
  610.         libxml2mod.xmlParserCtxtSetErrorHandler(self._o, f, arg)
  611.  
  612.     
  613.     def getErrorHandler(self):
  614.         return libxml2mod.xmlParserCtxtGetErrorHandler(self._o)
  615.  
  616.     
  617.     def addLocalCatalog(self, uri):
  618.         return libxml2mod.addLocalCatalog(self._o, uri)
  619.  
  620.  
  621.  
  622. class ValidCtxtCore:
  623.     
  624.     def __init__(self, *args, **kw):
  625.         pass
  626.  
  627.     
  628.     def setValidityErrorHandler(self, err_func, warn_func, arg = None):
  629.         libxml2mod.xmlSetValidErrors(self._o, err_func, warn_func, arg)
  630.  
  631.  
  632.  
  633. class SchemaValidCtxtCore:
  634.     
  635.     def __init__(self, *args, **kw):
  636.         pass
  637.  
  638.     
  639.     def setValidityErrorHandler(self, err_func, warn_func, arg = None):
  640.         libxml2mod.xmlSchemaSetValidErrors(self._o, err_func, warn_func, arg)
  641.  
  642.  
  643.  
  644. class relaxNgValidCtxtCore:
  645.     
  646.     def __init__(self, *args, **kw):
  647.         pass
  648.  
  649.     
  650.     def setValidityErrorHandler(self, err_func, warn_func, arg = None):
  651.         libxml2mod.xmlRelaxNGSetValidErrors(self._o, err_func, warn_func, arg)
  652.  
  653.  
  654.  
  655. def _xmlTextReaderErrorFunc(.0, msg, severity, locator):
  656.     (f, arg) = .0
  657.     return f(arg, msg, severity, xmlTextReaderLocator(locator))
  658.  
  659.  
  660. class xmlTextReaderCore:
  661.     
  662.     def __init__(self, _obj = None):
  663.         self.input = None
  664.         if _obj != None:
  665.             self._o = _obj
  666.             return None
  667.         self._o = None
  668.  
  669.     
  670.     def __del__(self):
  671.         if self._o != None:
  672.             libxml2mod.xmlFreeTextReader(self._o)
  673.         
  674.         self._o = None
  675.  
  676.     
  677.     def SetErrorHandler(self, f, arg):
  678.         if f is None:
  679.             libxml2mod.xmlTextReaderSetErrorHandler(self._o, None, None)
  680.         else:
  681.             libxml2mod.xmlTextReaderSetErrorHandler(self._o, _xmlTextReaderErrorFunc, (f, arg))
  682.  
  683.     
  684.     def GetErrorHandler(self):
  685.         (f, arg) = libxml2mod.xmlTextReaderGetErrorHandler(self._o)
  686.         if f is None:
  687.             return (None, None)
  688.         return arg
  689.  
  690.  
  691.  
  692. def cleanupParser():
  693.     libxml2mod.xmlPythonCleanupParser()
  694.  
  695.  
  696. def htmlCreateMemoryParserCtxt(buffer, size):
  697.     ret = libxml2mod.htmlCreateMemoryParserCtxt(buffer, size)
  698.     if ret is None:
  699.         raise parserError('htmlCreateMemoryParserCtxt() failed')
  700.     ret is None
  701.     return parserCtxt(_obj = ret)
  702.  
  703.  
  704. def htmlHandleOmittedElem(val):
  705.     ret = libxml2mod.htmlHandleOmittedElem(val)
  706.     return ret
  707.  
  708.  
  709. def htmlIsScriptAttribute(name):
  710.     ret = libxml2mod.htmlIsScriptAttribute(name)
  711.     return ret
  712.  
  713.  
  714. def htmlNewParserCtxt():
  715.     ret = libxml2mod.htmlNewParserCtxt()
  716.     if ret is None:
  717.         raise parserError('htmlNewParserCtxt() failed')
  718.     ret is None
  719.     return parserCtxt(_obj = ret)
  720.  
  721.  
  722. def htmlParseDoc(cur, encoding):
  723.     ret = libxml2mod.htmlParseDoc(cur, encoding)
  724.     if ret is None:
  725.         raise parserError('htmlParseDoc() failed')
  726.     ret is None
  727.     return xmlDoc(_obj = ret)
  728.  
  729.  
  730. def htmlParseFile(filename, encoding):
  731.     ret = libxml2mod.htmlParseFile(filename, encoding)
  732.     if ret is None:
  733.         raise parserError('htmlParseFile() failed')
  734.     ret is None
  735.     return xmlDoc(_obj = ret)
  736.  
  737.  
  738. def htmlReadDoc(cur, URL, encoding, options):
  739.     ret = libxml2mod.htmlReadDoc(cur, URL, encoding, options)
  740.     if ret is None:
  741.         raise treeError('htmlReadDoc() failed')
  742.     ret is None
  743.     return xmlDoc(_obj = ret)
  744.  
  745.  
  746. def htmlReadFd(fd, URL, encoding, options):
  747.     ret = libxml2mod.htmlReadFd(fd, URL, encoding, options)
  748.     if ret is None:
  749.         raise treeError('htmlReadFd() failed')
  750.     ret is None
  751.     return xmlDoc(_obj = ret)
  752.  
  753.  
  754. def htmlReadFile(filename, encoding, options):
  755.     ret = libxml2mod.htmlReadFile(filename, encoding, options)
  756.     if ret is None:
  757.         raise treeError('htmlReadFile() failed')
  758.     ret is None
  759.     return xmlDoc(_obj = ret)
  760.  
  761.  
  762. def htmlReadMemory(buffer, size, URL, encoding, options):
  763.     ret = libxml2mod.htmlReadMemory(buffer, size, URL, encoding, options)
  764.     if ret is None:
  765.         raise treeError('htmlReadMemory() failed')
  766.     ret is None
  767.     return xmlDoc(_obj = ret)
  768.  
  769.  
  770. def htmlIsBooleanAttr(name):
  771.     ret = libxml2mod.htmlIsBooleanAttr(name)
  772.     return ret
  773.  
  774.  
  775. def htmlNewDoc(URI, ExternalID):
  776.     ret = libxml2mod.htmlNewDoc(URI, ExternalID)
  777.     if ret is None:
  778.         raise treeError('htmlNewDoc() failed')
  779.     ret is None
  780.     return xmlDoc(_obj = ret)
  781.  
  782.  
  783. def htmlNewDocNoDtD(URI, ExternalID):
  784.     ret = libxml2mod.htmlNewDocNoDtD(URI, ExternalID)
  785.     if ret is None:
  786.         raise treeError('htmlNewDocNoDtD() failed')
  787.     ret is None
  788.     return xmlDoc(_obj = ret)
  789.  
  790.  
  791. def SAXDefaultVersion(version):
  792.     ret = libxml2mod.xmlSAXDefaultVersion(version)
  793.     return ret
  794.  
  795.  
  796. def defaultSAXHandlerInit():
  797.     libxml2mod.xmlDefaultSAXHandlerInit()
  798.  
  799.  
  800. def docbDefaultSAXHandlerInit():
  801.     libxml2mod.docbDefaultSAXHandlerInit()
  802.  
  803.  
  804. def htmlDefaultSAXHandlerInit():
  805.     libxml2mod.htmlDefaultSAXHandlerInit()
  806.  
  807.  
  808. def catalogAdd(type, orig, replace):
  809.     ret = libxml2mod.xmlCatalogAdd(type, orig, replace)
  810.     return ret
  811.  
  812.  
  813. def catalogCleanup():
  814.     libxml2mod.xmlCatalogCleanup()
  815.  
  816.  
  817. def catalogConvert():
  818.     ret = libxml2mod.xmlCatalogConvert()
  819.     return ret
  820.  
  821.  
  822. def catalogDump(out):
  823.     libxml2mod.xmlCatalogDump(out)
  824.  
  825.  
  826. def catalogGetPublic(pubID):
  827.     ret = libxml2mod.xmlCatalogGetPublic(pubID)
  828.     return ret
  829.  
  830.  
  831. def catalogGetSystem(sysID):
  832.     ret = libxml2mod.xmlCatalogGetSystem(sysID)
  833.     return ret
  834.  
  835.  
  836. def catalogRemove(value):
  837.     ret = libxml2mod.xmlCatalogRemove(value)
  838.     return ret
  839.  
  840.  
  841. def catalogResolve(pubID, sysID):
  842.     ret = libxml2mod.xmlCatalogResolve(pubID, sysID)
  843.     return ret
  844.  
  845.  
  846. def catalogResolvePublic(pubID):
  847.     ret = libxml2mod.xmlCatalogResolvePublic(pubID)
  848.     return ret
  849.  
  850.  
  851. def catalogResolveSystem(sysID):
  852.     ret = libxml2mod.xmlCatalogResolveSystem(sysID)
  853.     return ret
  854.  
  855.  
  856. def catalogResolveURI(URI):
  857.     ret = libxml2mod.xmlCatalogResolveURI(URI)
  858.     return ret
  859.  
  860.  
  861. def catalogSetDebug(level):
  862.     ret = libxml2mod.xmlCatalogSetDebug(level)
  863.     return ret
  864.  
  865.  
  866. def initializeCatalog():
  867.     libxml2mod.xmlInitializeCatalog()
  868.  
  869.  
  870. def loadACatalog(filename):
  871.     ret = libxml2mod.xmlLoadACatalog(filename)
  872.     if ret is None:
  873.         raise treeError('xmlLoadACatalog() failed')
  874.     ret is None
  875.     return catalog(_obj = ret)
  876.  
  877.  
  878. def loadCatalog(filename):
  879.     ret = libxml2mod.xmlLoadCatalog(filename)
  880.     return ret
  881.  
  882.  
  883. def loadCatalogs(pathss):
  884.     libxml2mod.xmlLoadCatalogs(pathss)
  885.  
  886.  
  887. def loadSGMLSuperCatalog(filename):
  888.     ret = libxml2mod.xmlLoadSGMLSuperCatalog(filename)
  889.     if ret is None:
  890.         raise treeError('xmlLoadSGMLSuperCatalog() failed')
  891.     ret is None
  892.     return catalog(_obj = ret)
  893.  
  894.  
  895. def newCatalog(sgml):
  896.     ret = libxml2mod.xmlNewCatalog(sgml)
  897.     if ret is None:
  898.         raise treeError('xmlNewCatalog() failed')
  899.     ret is None
  900.     return catalog(_obj = ret)
  901.  
  902.  
  903. def parseCatalogFile(filename):
  904.     ret = libxml2mod.xmlParseCatalogFile(filename)
  905.     if ret is None:
  906.         raise parserError('xmlParseCatalogFile() failed')
  907.     ret is None
  908.     return xmlDoc(_obj = ret)
  909.  
  910.  
  911. def isBaseChar(ch):
  912.     ret = libxml2mod.xmlIsBaseChar(ch)
  913.     return ret
  914.  
  915.  
  916. def isBlank(ch):
  917.     ret = libxml2mod.xmlIsBlank(ch)
  918.     return ret
  919.  
  920.  
  921. def isChar(ch):
  922.     ret = libxml2mod.xmlIsChar(ch)
  923.     return ret
  924.  
  925.  
  926. def isCombining(ch):
  927.     ret = libxml2mod.xmlIsCombining(ch)
  928.     return ret
  929.  
  930.  
  931. def isDigit(ch):
  932.     ret = libxml2mod.xmlIsDigit(ch)
  933.     return ret
  934.  
  935.  
  936. def isExtender(ch):
  937.     ret = libxml2mod.xmlIsExtender(ch)
  938.     return ret
  939.  
  940.  
  941. def isIdeographic(ch):
  942.     ret = libxml2mod.xmlIsIdeographic(ch)
  943.     return ret
  944.  
  945.  
  946. def isPubidChar(ch):
  947.     ret = libxml2mod.xmlIsPubidChar(ch)
  948.     return ret
  949.  
  950.  
  951. def boolToText(boolval):
  952.     ret = libxml2mod.xmlBoolToText(boolval)
  953.     return ret
  954.  
  955.  
  956. def debugDumpString(output, str):
  957.     libxml2mod.xmlDebugDumpString(output, str)
  958.  
  959.  
  960. def shellPrintXPathError(errorType, arg):
  961.     libxml2mod.xmlShellPrintXPathError(errorType, arg)
  962.  
  963.  
  964. def dictCleanup():
  965.     libxml2mod.xmlDictCleanup()
  966.  
  967.  
  968. def addEncodingAlias(name, alias):
  969.     ret = libxml2mod.xmlAddEncodingAlias(name, alias)
  970.     return ret
  971.  
  972.  
  973. def cleanupCharEncodingHandlers():
  974.     libxml2mod.xmlCleanupCharEncodingHandlers()
  975.  
  976.  
  977. def cleanupEncodingAliases():
  978.     libxml2mod.xmlCleanupEncodingAliases()
  979.  
  980.  
  981. def delEncodingAlias(alias):
  982.     ret = libxml2mod.xmlDelEncodingAlias(alias)
  983.     return ret
  984.  
  985.  
  986. def encodingAlias(alias):
  987.     ret = libxml2mod.xmlGetEncodingAlias(alias)
  988.     return ret
  989.  
  990.  
  991. def initCharEncodingHandlers():
  992.     libxml2mod.xmlInitCharEncodingHandlers()
  993.  
  994.  
  995. def cleanupPredefinedEntities():
  996.     libxml2mod.xmlCleanupPredefinedEntities()
  997.  
  998.  
  999. def initializePredefinedEntities():
  1000.     libxml2mod.xmlInitializePredefinedEntities()
  1001.  
  1002.  
  1003. def predefinedEntity(name):
  1004.     ret = libxml2mod.xmlGetPredefinedEntity(name)
  1005.     if ret is None:
  1006.         raise treeError('xmlGetPredefinedEntity() failed')
  1007.     ret is None
  1008.     return xmlEntity(_obj = ret)
  1009.  
  1010.  
  1011. def cleanupGlobals():
  1012.     libxml2mod.xmlCleanupGlobals()
  1013.  
  1014.  
  1015. def initGlobals():
  1016.     libxml2mod.xmlInitGlobals()
  1017.  
  1018.  
  1019. def thrDefDefaultBufferSize(v):
  1020.     ret = libxml2mod.xmlThrDefDefaultBufferSize(v)
  1021.     return ret
  1022.  
  1023.  
  1024. def thrDefDoValidityCheckingDefaultValue(v):
  1025.     ret = libxml2mod.xmlThrDefDoValidityCheckingDefaultValue(v)
  1026.     return ret
  1027.  
  1028.  
  1029. def thrDefGetWarningsDefaultValue(v):
  1030.     ret = libxml2mod.xmlThrDefGetWarningsDefaultValue(v)
  1031.     return ret
  1032.  
  1033.  
  1034. def thrDefIndentTreeOutput(v):
  1035.     ret = libxml2mod.xmlThrDefIndentTreeOutput(v)
  1036.     return ret
  1037.  
  1038.  
  1039. def thrDefKeepBlanksDefaultValue(v):
  1040.     ret = libxml2mod.xmlThrDefKeepBlanksDefaultValue(v)
  1041.     return ret
  1042.  
  1043.  
  1044. def thrDefLineNumbersDefaultValue(v):
  1045.     ret = libxml2mod.xmlThrDefLineNumbersDefaultValue(v)
  1046.     return ret
  1047.  
  1048.  
  1049. def thrDefLoadExtDtdDefaultValue(v):
  1050.     ret = libxml2mod.xmlThrDefLoadExtDtdDefaultValue(v)
  1051.     return ret
  1052.  
  1053.  
  1054. def thrDefParserDebugEntities(v):
  1055.     ret = libxml2mod.xmlThrDefParserDebugEntities(v)
  1056.     return ret
  1057.  
  1058.  
  1059. def thrDefPedanticParserDefaultValue(v):
  1060.     ret = libxml2mod.xmlThrDefPedanticParserDefaultValue(v)
  1061.     return ret
  1062.  
  1063.  
  1064. def thrDefSaveNoEmptyTags(v):
  1065.     ret = libxml2mod.xmlThrDefSaveNoEmptyTags(v)
  1066.     return ret
  1067.  
  1068.  
  1069. def thrDefSubstituteEntitiesDefaultValue(v):
  1070.     ret = libxml2mod.xmlThrDefSubstituteEntitiesDefaultValue(v)
  1071.     return ret
  1072.  
  1073.  
  1074. def thrDefTreeIndentString(v):
  1075.     ret = libxml2mod.xmlThrDefTreeIndentString(v)
  1076.     return ret
  1077.  
  1078.  
  1079. def nanoFTPCleanup():
  1080.     libxml2mod.xmlNanoFTPCleanup()
  1081.  
  1082.  
  1083. def nanoFTPInit():
  1084.     libxml2mod.xmlNanoFTPInit()
  1085.  
  1086.  
  1087. def nanoFTPProxy(host, port, user, passwd, type):
  1088.     libxml2mod.xmlNanoFTPProxy(host, port, user, passwd, type)
  1089.  
  1090.  
  1091. def nanoFTPScanProxy(URL):
  1092.     libxml2mod.xmlNanoFTPScanProxy(URL)
  1093.  
  1094.  
  1095. def nanoHTTPCleanup():
  1096.     libxml2mod.xmlNanoHTTPCleanup()
  1097.  
  1098.  
  1099. def nanoHTTPInit():
  1100.     libxml2mod.xmlNanoHTTPInit()
  1101.  
  1102.  
  1103. def nanoHTTPScanProxy(URL):
  1104.     libxml2mod.xmlNanoHTTPScanProxy(URL)
  1105.  
  1106.  
  1107. def createDocParserCtxt(cur):
  1108.     ret = libxml2mod.xmlCreateDocParserCtxt(cur)
  1109.     if ret is None:
  1110.         raise parserError('xmlCreateDocParserCtxt() failed')
  1111.     ret is None
  1112.     return parserCtxt(_obj = ret)
  1113.  
  1114.  
  1115. def initParser():
  1116.     libxml2mod.xmlInitParser()
  1117.  
  1118.  
  1119. def keepBlanksDefault(val):
  1120.     ret = libxml2mod.xmlKeepBlanksDefault(val)
  1121.     return ret
  1122.  
  1123.  
  1124. def lineNumbersDefault(val):
  1125.     ret = libxml2mod.xmlLineNumbersDefault(val)
  1126.     return ret
  1127.  
  1128.  
  1129. def newParserCtxt():
  1130.     ret = libxml2mod.xmlNewParserCtxt()
  1131.     if ret is None:
  1132.         raise parserError('xmlNewParserCtxt() failed')
  1133.     ret is None
  1134.     return parserCtxt(_obj = ret)
  1135.  
  1136.  
  1137. def parseDTD(ExternalID, SystemID):
  1138.     ret = libxml2mod.xmlParseDTD(ExternalID, SystemID)
  1139.     if ret is None:
  1140.         raise parserError('xmlParseDTD() failed')
  1141.     ret is None
  1142.     return xmlDtd(_obj = ret)
  1143.  
  1144.  
  1145. def parseDoc(cur):
  1146.     ret = libxml2mod.xmlParseDoc(cur)
  1147.     if ret is None:
  1148.         raise parserError('xmlParseDoc() failed')
  1149.     ret is None
  1150.     return xmlDoc(_obj = ret)
  1151.  
  1152.  
  1153. def parseEntity(filename):
  1154.     ret = libxml2mod.xmlParseEntity(filename)
  1155.     if ret is None:
  1156.         raise parserError('xmlParseEntity() failed')
  1157.     ret is None
  1158.     return xmlDoc(_obj = ret)
  1159.  
  1160.  
  1161. def parseFile(filename):
  1162.     ret = libxml2mod.xmlParseFile(filename)
  1163.     if ret is None:
  1164.         raise parserError('xmlParseFile() failed')
  1165.     ret is None
  1166.     return xmlDoc(_obj = ret)
  1167.  
  1168.  
  1169. def parseMemory(buffer, size):
  1170.     ret = libxml2mod.xmlParseMemory(buffer, size)
  1171.     if ret is None:
  1172.         raise parserError('xmlParseMemory() failed')
  1173.     ret is None
  1174.     return xmlDoc(_obj = ret)
  1175.  
  1176.  
  1177. def pedanticParserDefault(val):
  1178.     ret = libxml2mod.xmlPedanticParserDefault(val)
  1179.     return ret
  1180.  
  1181.  
  1182. def readDoc(cur, URL, encoding, options):
  1183.     ret = libxml2mod.xmlReadDoc(cur, URL, encoding, options)
  1184.     if ret is None:
  1185.         raise treeError('xmlReadDoc() failed')
  1186.     ret is None
  1187.     return xmlDoc(_obj = ret)
  1188.  
  1189.  
  1190. def readFd(fd, URL, encoding, options):
  1191.     ret = libxml2mod.xmlReadFd(fd, URL, encoding, options)
  1192.     if ret is None:
  1193.         raise treeError('xmlReadFd() failed')
  1194.     ret is None
  1195.     return xmlDoc(_obj = ret)
  1196.  
  1197.  
  1198. def readFile(filename, encoding, options):
  1199.     ret = libxml2mod.xmlReadFile(filename, encoding, options)
  1200.     if ret is None:
  1201.         raise treeError('xmlReadFile() failed')
  1202.     ret is None
  1203.     return xmlDoc(_obj = ret)
  1204.  
  1205.  
  1206. def readMemory(buffer, size, URL, encoding, options):
  1207.     ret = libxml2mod.xmlReadMemory(buffer, size, URL, encoding, options)
  1208.     if ret is None:
  1209.         raise treeError('xmlReadMemory() failed')
  1210.     ret is None
  1211.     return xmlDoc(_obj = ret)
  1212.  
  1213.  
  1214. def recoverDoc(cur):
  1215.     ret = libxml2mod.xmlRecoverDoc(cur)
  1216.     if ret is None:
  1217.         raise treeError('xmlRecoverDoc() failed')
  1218.     ret is None
  1219.     return xmlDoc(_obj = ret)
  1220.  
  1221.  
  1222. def recoverFile(filename):
  1223.     ret = libxml2mod.xmlRecoverFile(filename)
  1224.     if ret is None:
  1225.         raise treeError('xmlRecoverFile() failed')
  1226.     ret is None
  1227.     return xmlDoc(_obj = ret)
  1228.  
  1229.  
  1230. def recoverMemory(buffer, size):
  1231.     ret = libxml2mod.xmlRecoverMemory(buffer, size)
  1232.     if ret is None:
  1233.         raise treeError('xmlRecoverMemory() failed')
  1234.     ret is None
  1235.     return xmlDoc(_obj = ret)
  1236.  
  1237.  
  1238. def substituteEntitiesDefault(val):
  1239.     ret = libxml2mod.xmlSubstituteEntitiesDefault(val)
  1240.     return ret
  1241.  
  1242.  
  1243. def checkLanguageID(lang):
  1244.     ret = libxml2mod.xmlCheckLanguageID(lang)
  1245.     return ret
  1246.  
  1247.  
  1248. def copyChar(len, out, val):
  1249.     ret = libxml2mod.xmlCopyChar(len, out, val)
  1250.     return ret
  1251.  
  1252.  
  1253. def copyCharMultiByte(out, val):
  1254.     ret = libxml2mod.xmlCopyCharMultiByte(out, val)
  1255.     return ret
  1256.  
  1257.  
  1258. def createEntityParserCtxt(URL, ID, base):
  1259.     ret = libxml2mod.xmlCreateEntityParserCtxt(URL, ID, base)
  1260.     if ret is None:
  1261.         raise parserError('xmlCreateEntityParserCtxt() failed')
  1262.     ret is None
  1263.     return parserCtxt(_obj = ret)
  1264.  
  1265.  
  1266. def createFileParserCtxt(filename):
  1267.     ret = libxml2mod.xmlCreateFileParserCtxt(filename)
  1268.     if ret is None:
  1269.         raise parserError('xmlCreateFileParserCtxt() failed')
  1270.     ret is None
  1271.     return parserCtxt(_obj = ret)
  1272.  
  1273.  
  1274. def createMemoryParserCtxt(buffer, size):
  1275.     ret = libxml2mod.xmlCreateMemoryParserCtxt(buffer, size)
  1276.     if ret is None:
  1277.         raise parserError('xmlCreateMemoryParserCtxt() failed')
  1278.     ret is None
  1279.     return parserCtxt(_obj = ret)
  1280.  
  1281.  
  1282. def createURLParserCtxt(filename, options):
  1283.     ret = libxml2mod.xmlCreateURLParserCtxt(filename, options)
  1284.     if ret is None:
  1285.         raise parserError('xmlCreateURLParserCtxt() failed')
  1286.     ret is None
  1287.     return parserCtxt(_obj = ret)
  1288.  
  1289.  
  1290. def htmlCreateFileParserCtxt(filename, encoding):
  1291.     ret = libxml2mod.htmlCreateFileParserCtxt(filename, encoding)
  1292.     if ret is None:
  1293.         raise parserError('htmlCreateFileParserCtxt() failed')
  1294.     ret is None
  1295.     return parserCtxt(_obj = ret)
  1296.  
  1297.  
  1298. def htmlInitAutoClose():
  1299.     libxml2mod.htmlInitAutoClose()
  1300.  
  1301.  
  1302. def isLetter(c):
  1303.     ret = libxml2mod.xmlIsLetter(c)
  1304.     return ret
  1305.  
  1306.  
  1307. def namePop(ctxt):
  1308.     if ctxt is None:
  1309.         ctxt__o = None
  1310.     else:
  1311.         ctxt__o = ctxt._o
  1312.     ret = libxml2mod.namePop(ctxt__o)
  1313.     return ret
  1314.  
  1315.  
  1316. def namePush(ctxt, value):
  1317.     if ctxt is None:
  1318.         ctxt__o = None
  1319.     else:
  1320.         ctxt__o = ctxt._o
  1321.     ret = libxml2mod.namePush(ctxt__o, value)
  1322.     return ret
  1323.  
  1324.  
  1325. def nodePop(ctxt):
  1326.     if ctxt is None:
  1327.         ctxt__o = None
  1328.     else:
  1329.         ctxt__o = ctxt._o
  1330.     ret = libxml2mod.nodePop(ctxt__o)
  1331.     if ret is None:
  1332.         raise treeError('nodePop() failed')
  1333.     ret is None
  1334.     return xmlNode(_obj = ret)
  1335.  
  1336.  
  1337. def nodePush(ctxt, value):
  1338.     if ctxt is None:
  1339.         ctxt__o = None
  1340.     else:
  1341.         ctxt__o = ctxt._o
  1342.     if value is None:
  1343.         value__o = None
  1344.     else:
  1345.         value__o = value._o
  1346.     ret = libxml2mod.nodePush(ctxt__o, value__o)
  1347.     return ret
  1348.  
  1349.  
  1350. def SAXParseFile(SAX, URI, recover):
  1351.     libxml2mod.xmlSAXParseFile(SAX, URI, recover)
  1352.  
  1353.  
  1354. def createInputBuffer(file, encoding):
  1355.     ret = libxml2mod.xmlCreateInputBuffer(file, encoding)
  1356.     if ret is None:
  1357.         raise treeError('xmlCreateInputBuffer() failed')
  1358.     ret is None
  1359.     return inputBuffer(_obj = ret)
  1360.  
  1361.  
  1362. def createOutputBuffer(file, encoding):
  1363.     ret = libxml2mod.xmlCreateOutputBuffer(file, encoding)
  1364.     if ret is None:
  1365.         raise treeError('xmlCreateOutputBuffer() failed')
  1366.     ret is None
  1367.     return outputBuffer(_obj = ret)
  1368.  
  1369.  
  1370. def createPushParser(SAX, chunk, size, URI):
  1371.     ret = libxml2mod.xmlCreatePushParser(SAX, chunk, size, URI)
  1372.     if ret is None:
  1373.         raise parserError('xmlCreatePushParser() failed')
  1374.     ret is None
  1375.     return parserCtxt(_obj = ret)
  1376.  
  1377.  
  1378. def debugMemory(activate):
  1379.     ret = libxml2mod.xmlDebugMemory(activate)
  1380.     return ret
  1381.  
  1382.  
  1383. def dumpMemory():
  1384.     libxml2mod.xmlDumpMemory()
  1385.  
  1386.  
  1387. def htmlCreatePushParser(SAX, chunk, size, URI):
  1388.     ret = libxml2mod.htmlCreatePushParser(SAX, chunk, size, URI)
  1389.     if ret is None:
  1390.         raise parserError('htmlCreatePushParser() failed')
  1391.     ret is None
  1392.     return parserCtxt(_obj = ret)
  1393.  
  1394.  
  1395. def htmlSAXParseFile(SAX, URI, encoding):
  1396.     libxml2mod.htmlSAXParseFile(SAX, URI, encoding)
  1397.  
  1398.  
  1399. def memoryUsed():
  1400.     ret = libxml2mod.xmlMemoryUsed()
  1401.     return ret
  1402.  
  1403.  
  1404. def newNode(name):
  1405.     ret = libxml2mod.xmlNewNode(name)
  1406.     if ret is None:
  1407.         raise treeError('xmlNewNode() failed')
  1408.     ret is None
  1409.     return xmlNode(_obj = ret)
  1410.  
  1411.  
  1412. def pythonCleanupParser():
  1413.     libxml2mod.xmlPythonCleanupParser()
  1414.  
  1415.  
  1416. def setEntityLoader(resolver):
  1417.     ret = libxml2mod.xmlSetEntityLoader(resolver)
  1418.     return ret
  1419.  
  1420.  
  1421. def relaxNGCleanupTypes():
  1422.     libxml2mod.xmlRelaxNGCleanupTypes()
  1423.  
  1424.  
  1425. def relaxNGInitTypes():
  1426.     ret = libxml2mod.xmlRelaxNGInitTypes()
  1427.     return ret
  1428.  
  1429.  
  1430. def relaxNGNewMemParserCtxt(buffer, size):
  1431.     ret = libxml2mod.xmlRelaxNGNewMemParserCtxt(buffer, size)
  1432.     if ret is None:
  1433.         raise parserError('xmlRelaxNGNewMemParserCtxt() failed')
  1434.     ret is None
  1435.     return relaxNgParserCtxt(_obj = ret)
  1436.  
  1437.  
  1438. def relaxNGNewParserCtxt(URL):
  1439.     ret = libxml2mod.xmlRelaxNGNewParserCtxt(URL)
  1440.     if ret is None:
  1441.         raise parserError('xmlRelaxNGNewParserCtxt() failed')
  1442.     ret is None
  1443.     return relaxNgParserCtxt(_obj = ret)
  1444.  
  1445.  
  1446. def buildQName(ncname, prefix, memory, len):
  1447.     ret = libxml2mod.xmlBuildQName(ncname, prefix, memory, len)
  1448.     return ret
  1449.  
  1450.  
  1451. def compressMode():
  1452.     ret = libxml2mod.xmlGetCompressMode()
  1453.     return ret
  1454.  
  1455.  
  1456. def isXHTML(systemID, publicID):
  1457.     ret = libxml2mod.xmlIsXHTML(systemID, publicID)
  1458.     return ret
  1459.  
  1460.  
  1461. def newComment(content):
  1462.     ret = libxml2mod.xmlNewComment(content)
  1463.     if ret is None:
  1464.         raise treeError('xmlNewComment() failed')
  1465.     ret is None
  1466.     return xmlNode(_obj = ret)
  1467.  
  1468.  
  1469. def newDoc(version):
  1470.     ret = libxml2mod.xmlNewDoc(version)
  1471.     if ret is None:
  1472.         raise treeError('xmlNewDoc() failed')
  1473.     ret is None
  1474.     return xmlDoc(_obj = ret)
  1475.  
  1476.  
  1477. def newPI(name, content):
  1478.     ret = libxml2mod.xmlNewPI(name, content)
  1479.     if ret is None:
  1480.         raise treeError('xmlNewPI() failed')
  1481.     ret is None
  1482.     return xmlNode(_obj = ret)
  1483.  
  1484.  
  1485. def newText(content):
  1486.     ret = libxml2mod.xmlNewText(content)
  1487.     if ret is None:
  1488.         raise treeError('xmlNewText() failed')
  1489.     ret is None
  1490.     return xmlNode(_obj = ret)
  1491.  
  1492.  
  1493. def newTextLen(content, len):
  1494.     ret = libxml2mod.xmlNewTextLen(content, len)
  1495.     if ret is None:
  1496.         raise treeError('xmlNewTextLen() failed')
  1497.     ret is None
  1498.     return xmlNode(_obj = ret)
  1499.  
  1500.  
  1501. def setCompressMode(mode):
  1502.     libxml2mod.xmlSetCompressMode(mode)
  1503.  
  1504.  
  1505. def validateNCName(value, space):
  1506.     ret = libxml2mod.xmlValidateNCName(value, space)
  1507.     return ret
  1508.  
  1509.  
  1510. def validateNMToken(value, space):
  1511.     ret = libxml2mod.xmlValidateNMToken(value, space)
  1512.     return ret
  1513.  
  1514.  
  1515. def validateName(value, space):
  1516.     ret = libxml2mod.xmlValidateName(value, space)
  1517.     return ret
  1518.  
  1519.  
  1520. def validateQName(value, space):
  1521.     ret = libxml2mod.xmlValidateQName(value, space)
  1522.     return ret
  1523.  
  1524.  
  1525. def URIEscape(str):
  1526.     ret = libxml2mod.xmlURIEscape(str)
  1527.     return ret
  1528.  
  1529.  
  1530. def URIEscapeStr(str, list):
  1531.     ret = libxml2mod.xmlURIEscapeStr(str, list)
  1532.     return ret
  1533.  
  1534.  
  1535. def URIUnescapeString(str, len, target):
  1536.     ret = libxml2mod.xmlURIUnescapeString(str, len, target)
  1537.     return ret
  1538.  
  1539.  
  1540. def buildRelativeURI(URI, base):
  1541.     ret = libxml2mod.xmlBuildRelativeURI(URI, base)
  1542.     return ret
  1543.  
  1544.  
  1545. def buildURI(URI, base):
  1546.     ret = libxml2mod.xmlBuildURI(URI, base)
  1547.     return ret
  1548.  
  1549.  
  1550. def canonicPath(path):
  1551.     ret = libxml2mod.xmlCanonicPath(path)
  1552.     return ret
  1553.  
  1554.  
  1555. def createURI():
  1556.     ret = libxml2mod.xmlCreateURI()
  1557.     if ret is None:
  1558.         raise uriError('xmlCreateURI() failed')
  1559.     ret is None
  1560.     return URI(_obj = ret)
  1561.  
  1562.  
  1563. def normalizeURIPath(path):
  1564.     ret = libxml2mod.xmlNormalizeURIPath(path)
  1565.     return ret
  1566.  
  1567.  
  1568. def parseURI(str):
  1569.     ret = libxml2mod.xmlParseURI(str)
  1570.     if ret is None:
  1571.         raise uriError('xmlParseURI() failed')
  1572.     ret is None
  1573.     return URI(_obj = ret)
  1574.  
  1575.  
  1576. def parseURIRaw(str, raw):
  1577.     ret = libxml2mod.xmlParseURIRaw(str, raw)
  1578.     if ret is None:
  1579.         raise uriError('xmlParseURIRaw() failed')
  1580.     ret is None
  1581.     return URI(_obj = ret)
  1582.  
  1583.  
  1584. def pathToURI(path):
  1585.     ret = libxml2mod.xmlPathToURI(path)
  1586.     return ret
  1587.  
  1588.  
  1589. def newValidCtxt():
  1590.     ret = libxml2mod.xmlNewValidCtxt()
  1591.     if ret is None:
  1592.         raise treeError('xmlNewValidCtxt() failed')
  1593.     ret is None
  1594.     return ValidCtxt(_obj = ret)
  1595.  
  1596.  
  1597. def validateNameValue(value):
  1598.     ret = libxml2mod.xmlValidateNameValue(value)
  1599.     return ret
  1600.  
  1601.  
  1602. def validateNamesValue(value):
  1603.     ret = libxml2mod.xmlValidateNamesValue(value)
  1604.     return ret
  1605.  
  1606.  
  1607. def validateNmtokenValue(value):
  1608.     ret = libxml2mod.xmlValidateNmtokenValue(value)
  1609.     return ret
  1610.  
  1611.  
  1612. def validateNmtokensValue(value):
  1613.     ret = libxml2mod.xmlValidateNmtokensValue(value)
  1614.     return ret
  1615.  
  1616.  
  1617. def checkFilename(path):
  1618.     ret = libxml2mod.xmlCheckFilename(path)
  1619.     return ret
  1620.  
  1621.  
  1622. def cleanupInputCallbacks():
  1623.     libxml2mod.xmlCleanupInputCallbacks()
  1624.  
  1625.  
  1626. def cleanupOutputCallbacks():
  1627.     libxml2mod.xmlCleanupOutputCallbacks()
  1628.  
  1629.  
  1630. def fileMatch(filename):
  1631.     ret = libxml2mod.xmlFileMatch(filename)
  1632.     return ret
  1633.  
  1634.  
  1635. def iOFTPMatch(filename):
  1636.     ret = libxml2mod.xmlIOFTPMatch(filename)
  1637.     return ret
  1638.  
  1639.  
  1640. def iOHTTPMatch(filename):
  1641.     ret = libxml2mod.xmlIOHTTPMatch(filename)
  1642.     return ret
  1643.  
  1644.  
  1645. def normalizeWindowsPath(path):
  1646.     ret = libxml2mod.xmlNormalizeWindowsPath(path)
  1647.     return ret
  1648.  
  1649.  
  1650. def parserGetDirectory(filename):
  1651.     ret = libxml2mod.xmlParserGetDirectory(filename)
  1652.     return ret
  1653.  
  1654.  
  1655. def popInputCallbacks():
  1656.     ret = libxml2mod.xmlPopInputCallbacks()
  1657.     return ret
  1658.  
  1659.  
  1660. def registerDefaultInputCallbacks():
  1661.     libxml2mod.xmlRegisterDefaultInputCallbacks()
  1662.  
  1663.  
  1664. def registerDefaultOutputCallbacks():
  1665.     libxml2mod.xmlRegisterDefaultOutputCallbacks()
  1666.  
  1667.  
  1668. def registerHTTPPostCallbacks():
  1669.     libxml2mod.xmlRegisterHTTPPostCallbacks()
  1670.  
  1671.  
  1672. def lastError():
  1673.     ret = libxml2mod.xmlGetLastError()
  1674.     if ret is None:
  1675.         raise treeError('xmlGetLastError() failed')
  1676.     ret is None
  1677.     return Error(_obj = ret)
  1678.  
  1679.  
  1680. def resetLastError():
  1681.     libxml2mod.xmlResetLastError()
  1682.  
  1683.  
  1684. def newTextReaderFilename(URI):
  1685.     ret = libxml2mod.xmlNewTextReaderFilename(URI)
  1686.     if ret is None:
  1687.         raise treeError('xmlNewTextReaderFilename() failed')
  1688.     ret is None
  1689.     return xmlTextReader(_obj = ret)
  1690.  
  1691.  
  1692. def readerForDoc(cur, URL, encoding, options):
  1693.     ret = libxml2mod.xmlReaderForDoc(cur, URL, encoding, options)
  1694.     if ret is None:
  1695.         raise treeError('xmlReaderForDoc() failed')
  1696.     ret is None
  1697.     return xmlTextReader(_obj = ret)
  1698.  
  1699.  
  1700. def readerForFd(fd, URL, encoding, options):
  1701.     ret = libxml2mod.xmlReaderForFd(fd, URL, encoding, options)
  1702.     if ret is None:
  1703.         raise treeError('xmlReaderForFd() failed')
  1704.     ret is None
  1705.     return xmlTextReader(_obj = ret)
  1706.  
  1707.  
  1708. def readerForFile(filename, encoding, options):
  1709.     ret = libxml2mod.xmlReaderForFile(filename, encoding, options)
  1710.     if ret is None:
  1711.         raise treeError('xmlReaderForFile() failed')
  1712.     ret is None
  1713.     return xmlTextReader(_obj = ret)
  1714.  
  1715.  
  1716. def readerForMemory(buffer, size, URL, encoding, options):
  1717.     ret = libxml2mod.xmlReaderForMemory(buffer, size, URL, encoding, options)
  1718.     if ret is None:
  1719.         raise treeError('xmlReaderForMemory() failed')
  1720.     ret is None
  1721.     return xmlTextReader(_obj = ret)
  1722.  
  1723.  
  1724. def regexpCompile(regexp):
  1725.     ret = libxml2mod.xmlRegexpCompile(regexp)
  1726.     if ret is None:
  1727.         raise treeError('xmlRegexpCompile() failed')
  1728.     ret is None
  1729.     return xmlReg(_obj = ret)
  1730.  
  1731.  
  1732. def schemaNewMemParserCtxt(buffer, size):
  1733.     ret = libxml2mod.xmlSchemaNewMemParserCtxt(buffer, size)
  1734.     if ret is None:
  1735.         raise parserError('xmlSchemaNewMemParserCtxt() failed')
  1736.     ret is None
  1737.     return SchemaParserCtxt(_obj = ret)
  1738.  
  1739.  
  1740. def schemaNewParserCtxt(URL):
  1741.     ret = libxml2mod.xmlSchemaNewParserCtxt(URL)
  1742.     if ret is None:
  1743.         raise parserError('xmlSchemaNewParserCtxt() failed')
  1744.     ret is None
  1745.     return SchemaParserCtxt(_obj = ret)
  1746.  
  1747.  
  1748. def schemaCleanupTypes():
  1749.     libxml2mod.xmlSchemaCleanupTypes()
  1750.  
  1751.  
  1752. def schemaCollapseString(value):
  1753.     ret = libxml2mod.xmlSchemaCollapseString(value)
  1754.     return ret
  1755.  
  1756.  
  1757. def schemaInitTypes():
  1758.     libxml2mod.xmlSchemaInitTypes()
  1759.  
  1760.  
  1761. def schemaWhiteSpaceReplace(value):
  1762.     ret = libxml2mod.xmlSchemaWhiteSpaceReplace(value)
  1763.     return ret
  1764.  
  1765.  
  1766. def UTF8Charcmp(utf1, utf2):
  1767.     ret = libxml2mod.xmlUTF8Charcmp(utf1, utf2)
  1768.     return ret
  1769.  
  1770.  
  1771. def UTF8Size(utf):
  1772.     ret = libxml2mod.xmlUTF8Size(utf)
  1773.     return ret
  1774.  
  1775.  
  1776. def UTF8Strlen(utf):
  1777.     ret = libxml2mod.xmlUTF8Strlen(utf)
  1778.     return ret
  1779.  
  1780.  
  1781. def UTF8Strloc(utf, utfchar):
  1782.     ret = libxml2mod.xmlUTF8Strloc(utf, utfchar)
  1783.     return ret
  1784.  
  1785.  
  1786. def UTF8Strndup(utf, len):
  1787.     ret = libxml2mod.xmlUTF8Strndup(utf, len)
  1788.     return ret
  1789.  
  1790.  
  1791. def UTF8Strpos(utf, pos):
  1792.     ret = libxml2mod.xmlUTF8Strpos(utf, pos)
  1793.     return ret
  1794.  
  1795.  
  1796. def UTF8Strsize(utf, len):
  1797.     ret = libxml2mod.xmlUTF8Strsize(utf, len)
  1798.     return ret
  1799.  
  1800.  
  1801. def UTF8Strsub(utf, start, len):
  1802.     ret = libxml2mod.xmlUTF8Strsub(utf, start, len)
  1803.     return ret
  1804.  
  1805.  
  1806. def checkUTF8(utf):
  1807.     ret = libxml2mod.xmlCheckUTF8(utf)
  1808.     return ret
  1809.  
  1810.  
  1811. def uCSIsAegeanNumbers(code):
  1812.     ret = libxml2mod.xmlUCSIsAegeanNumbers(code)
  1813.     return ret
  1814.  
  1815.  
  1816. def uCSIsAlphabeticPresentationForms(code):
  1817.     ret = libxml2mod.xmlUCSIsAlphabeticPresentationForms(code)
  1818.     return ret
  1819.  
  1820.  
  1821. def uCSIsArabic(code):
  1822.     ret = libxml2mod.xmlUCSIsArabic(code)
  1823.     return ret
  1824.  
  1825.  
  1826. def uCSIsArabicPresentationFormsA(code):
  1827.     ret = libxml2mod.xmlUCSIsArabicPresentationFormsA(code)
  1828.     return ret
  1829.  
  1830.  
  1831. def uCSIsArabicPresentationFormsB(code):
  1832.     ret = libxml2mod.xmlUCSIsArabicPresentationFormsB(code)
  1833.     return ret
  1834.  
  1835.  
  1836. def uCSIsArmenian(code):
  1837.     ret = libxml2mod.xmlUCSIsArmenian(code)
  1838.     return ret
  1839.  
  1840.  
  1841. def uCSIsArrows(code):
  1842.     ret = libxml2mod.xmlUCSIsArrows(code)
  1843.     return ret
  1844.  
  1845.  
  1846. def uCSIsBasicLatin(code):
  1847.     ret = libxml2mod.xmlUCSIsBasicLatin(code)
  1848.     return ret
  1849.  
  1850.  
  1851. def uCSIsBengali(code):
  1852.     ret = libxml2mod.xmlUCSIsBengali(code)
  1853.     return ret
  1854.  
  1855.  
  1856. def uCSIsBlock(code, block):
  1857.     ret = libxml2mod.xmlUCSIsBlock(code, block)
  1858.     return ret
  1859.  
  1860.  
  1861. def uCSIsBlockElements(code):
  1862.     ret = libxml2mod.xmlUCSIsBlockElements(code)
  1863.     return ret
  1864.  
  1865.  
  1866. def uCSIsBopomofo(code):
  1867.     ret = libxml2mod.xmlUCSIsBopomofo(code)
  1868.     return ret
  1869.  
  1870.  
  1871. def uCSIsBopomofoExtended(code):
  1872.     ret = libxml2mod.xmlUCSIsBopomofoExtended(code)
  1873.     return ret
  1874.  
  1875.  
  1876. def uCSIsBoxDrawing(code):
  1877.     ret = libxml2mod.xmlUCSIsBoxDrawing(code)
  1878.     return ret
  1879.  
  1880.  
  1881. def uCSIsBraillePatterns(code):
  1882.     ret = libxml2mod.xmlUCSIsBraillePatterns(code)
  1883.     return ret
  1884.  
  1885.  
  1886. def uCSIsBuhid(code):
  1887.     ret = libxml2mod.xmlUCSIsBuhid(code)
  1888.     return ret
  1889.  
  1890.  
  1891. def uCSIsByzantineMusicalSymbols(code):
  1892.     ret = libxml2mod.xmlUCSIsByzantineMusicalSymbols(code)
  1893.     return ret
  1894.  
  1895.  
  1896. def uCSIsCJKCompatibility(code):
  1897.     ret = libxml2mod.xmlUCSIsCJKCompatibility(code)
  1898.     return ret
  1899.  
  1900.  
  1901. def uCSIsCJKCompatibilityForms(code):
  1902.     ret = libxml2mod.xmlUCSIsCJKCompatibilityForms(code)
  1903.     return ret
  1904.  
  1905.  
  1906. def uCSIsCJKCompatibilityIdeographs(code):
  1907.     ret = libxml2mod.xmlUCSIsCJKCompatibilityIdeographs(code)
  1908.     return ret
  1909.  
  1910.  
  1911. def uCSIsCJKCompatibilityIdeographsSupplement(code):
  1912.     ret = libxml2mod.xmlUCSIsCJKCompatibilityIdeographsSupplement(code)
  1913.     return ret
  1914.  
  1915.  
  1916. def uCSIsCJKRadicalsSupplement(code):
  1917.     ret = libxml2mod.xmlUCSIsCJKRadicalsSupplement(code)
  1918.     return ret
  1919.  
  1920.  
  1921. def uCSIsCJKSymbolsandPunctuation(code):
  1922.     ret = libxml2mod.xmlUCSIsCJKSymbolsandPunctuation(code)
  1923.     return ret
  1924.  
  1925.  
  1926. def uCSIsCJKUnifiedIdeographs(code):
  1927.     ret = libxml2mod.xmlUCSIsCJKUnifiedIdeographs(code)
  1928.     return ret
  1929.  
  1930.  
  1931. def uCSIsCJKUnifiedIdeographsExtensionA(code):
  1932.     ret = libxml2mod.xmlUCSIsCJKUnifiedIdeographsExtensionA(code)
  1933.     return ret
  1934.  
  1935.  
  1936. def uCSIsCJKUnifiedIdeographsExtensionB(code):
  1937.     ret = libxml2mod.xmlUCSIsCJKUnifiedIdeographsExtensionB(code)
  1938.     return ret
  1939.  
  1940.  
  1941. def uCSIsCat(code, cat):
  1942.     ret = libxml2mod.xmlUCSIsCat(code, cat)
  1943.     return ret
  1944.  
  1945.  
  1946. def uCSIsCatC(code):
  1947.     ret = libxml2mod.xmlUCSIsCatC(code)
  1948.     return ret
  1949.  
  1950.  
  1951. def uCSIsCatCc(code):
  1952.     ret = libxml2mod.xmlUCSIsCatCc(code)
  1953.     return ret
  1954.  
  1955.  
  1956. def uCSIsCatCf(code):
  1957.     ret = libxml2mod.xmlUCSIsCatCf(code)
  1958.     return ret
  1959.  
  1960.  
  1961. def uCSIsCatCo(code):
  1962.     ret = libxml2mod.xmlUCSIsCatCo(code)
  1963.     return ret
  1964.  
  1965.  
  1966. def uCSIsCatCs(code):
  1967.     ret = libxml2mod.xmlUCSIsCatCs(code)
  1968.     return ret
  1969.  
  1970.  
  1971. def uCSIsCatL(code):
  1972.     ret = libxml2mod.xmlUCSIsCatL(code)
  1973.     return ret
  1974.  
  1975.  
  1976. def uCSIsCatLl(code):
  1977.     ret = libxml2mod.xmlUCSIsCatLl(code)
  1978.     return ret
  1979.  
  1980.  
  1981. def uCSIsCatLm(code):
  1982.     ret = libxml2mod.xmlUCSIsCatLm(code)
  1983.     return ret
  1984.  
  1985.  
  1986. def uCSIsCatLo(code):
  1987.     ret = libxml2mod.xmlUCSIsCatLo(code)
  1988.     return ret
  1989.  
  1990.  
  1991. def uCSIsCatLt(code):
  1992.     ret = libxml2mod.xmlUCSIsCatLt(code)
  1993.     return ret
  1994.  
  1995.  
  1996. def uCSIsCatLu(code):
  1997.     ret = libxml2mod.xmlUCSIsCatLu(code)
  1998.     return ret
  1999.  
  2000.  
  2001. def uCSIsCatM(code):
  2002.     ret = libxml2mod.xmlUCSIsCatM(code)
  2003.     return ret
  2004.  
  2005.  
  2006. def uCSIsCatMc(code):
  2007.     ret = libxml2mod.xmlUCSIsCatMc(code)
  2008.     return ret
  2009.  
  2010.  
  2011. def uCSIsCatMe(code):
  2012.     ret = libxml2mod.xmlUCSIsCatMe(code)
  2013.     return ret
  2014.  
  2015.  
  2016. def uCSIsCatMn(code):
  2017.     ret = libxml2mod.xmlUCSIsCatMn(code)
  2018.     return ret
  2019.  
  2020.  
  2021. def uCSIsCatN(code):
  2022.     ret = libxml2mod.xmlUCSIsCatN(code)
  2023.     return ret
  2024.  
  2025.  
  2026. def uCSIsCatNd(code):
  2027.     ret = libxml2mod.xmlUCSIsCatNd(code)
  2028.     return ret
  2029.  
  2030.  
  2031. def uCSIsCatNl(code):
  2032.     ret = libxml2mod.xmlUCSIsCatNl(code)
  2033.     return ret
  2034.  
  2035.  
  2036. def uCSIsCatNo(code):
  2037.     ret = libxml2mod.xmlUCSIsCatNo(code)
  2038.     return ret
  2039.  
  2040.  
  2041. def uCSIsCatP(code):
  2042.     ret = libxml2mod.xmlUCSIsCatP(code)
  2043.     return ret
  2044.  
  2045.  
  2046. def uCSIsCatPc(code):
  2047.     ret = libxml2mod.xmlUCSIsCatPc(code)
  2048.     return ret
  2049.  
  2050.  
  2051. def uCSIsCatPd(code):
  2052.     ret = libxml2mod.xmlUCSIsCatPd(code)
  2053.     return ret
  2054.  
  2055.  
  2056. def uCSIsCatPe(code):
  2057.     ret = libxml2mod.xmlUCSIsCatPe(code)
  2058.     return ret
  2059.  
  2060.  
  2061. def uCSIsCatPf(code):
  2062.     ret = libxml2mod.xmlUCSIsCatPf(code)
  2063.     return ret
  2064.  
  2065.  
  2066. def uCSIsCatPi(code):
  2067.     ret = libxml2mod.xmlUCSIsCatPi(code)
  2068.     return ret
  2069.  
  2070.  
  2071. def uCSIsCatPo(code):
  2072.     ret = libxml2mod.xmlUCSIsCatPo(code)
  2073.     return ret
  2074.  
  2075.  
  2076. def uCSIsCatPs(code):
  2077.     ret = libxml2mod.xmlUCSIsCatPs(code)
  2078.     return ret
  2079.  
  2080.  
  2081. def uCSIsCatS(code):
  2082.     ret = libxml2mod.xmlUCSIsCatS(code)
  2083.     return ret
  2084.  
  2085.  
  2086. def uCSIsCatSc(code):
  2087.     ret = libxml2mod.xmlUCSIsCatSc(code)
  2088.     return ret
  2089.  
  2090.  
  2091. def uCSIsCatSk(code):
  2092.     ret = libxml2mod.xmlUCSIsCatSk(code)
  2093.     return ret
  2094.  
  2095.  
  2096. def uCSIsCatSm(code):
  2097.     ret = libxml2mod.xmlUCSIsCatSm(code)
  2098.     return ret
  2099.  
  2100.  
  2101. def uCSIsCatSo(code):
  2102.     ret = libxml2mod.xmlUCSIsCatSo(code)
  2103.     return ret
  2104.  
  2105.  
  2106. def uCSIsCatZ(code):
  2107.     ret = libxml2mod.xmlUCSIsCatZ(code)
  2108.     return ret
  2109.  
  2110.  
  2111. def uCSIsCatZl(code):
  2112.     ret = libxml2mod.xmlUCSIsCatZl(code)
  2113.     return ret
  2114.  
  2115.  
  2116. def uCSIsCatZp(code):
  2117.     ret = libxml2mod.xmlUCSIsCatZp(code)
  2118.     return ret
  2119.  
  2120.  
  2121. def uCSIsCatZs(code):
  2122.     ret = libxml2mod.xmlUCSIsCatZs(code)
  2123.     return ret
  2124.  
  2125.  
  2126. def uCSIsCherokee(code):
  2127.     ret = libxml2mod.xmlUCSIsCherokee(code)
  2128.     return ret
  2129.  
  2130.  
  2131. def uCSIsCombiningDiacriticalMarks(code):
  2132.     ret = libxml2mod.xmlUCSIsCombiningDiacriticalMarks(code)
  2133.     return ret
  2134.  
  2135.  
  2136. def uCSIsCombiningDiacriticalMarksforSymbols(code):
  2137.     ret = libxml2mod.xmlUCSIsCombiningDiacriticalMarksforSymbols(code)
  2138.     return ret
  2139.  
  2140.  
  2141. def uCSIsCombiningHalfMarks(code):
  2142.     ret = libxml2mod.xmlUCSIsCombiningHalfMarks(code)
  2143.     return ret
  2144.  
  2145.  
  2146. def uCSIsCombiningMarksforSymbols(code):
  2147.     ret = libxml2mod.xmlUCSIsCombiningMarksforSymbols(code)
  2148.     return ret
  2149.  
  2150.  
  2151. def uCSIsControlPictures(code):
  2152.     ret = libxml2mod.xmlUCSIsControlPictures(code)
  2153.     return ret
  2154.  
  2155.  
  2156. def uCSIsCurrencySymbols(code):
  2157.     ret = libxml2mod.xmlUCSIsCurrencySymbols(code)
  2158.     return ret
  2159.  
  2160.  
  2161. def uCSIsCypriotSyllabary(code):
  2162.     ret = libxml2mod.xmlUCSIsCypriotSyllabary(code)
  2163.     return ret
  2164.  
  2165.  
  2166. def uCSIsCyrillic(code):
  2167.     ret = libxml2mod.xmlUCSIsCyrillic(code)
  2168.     return ret
  2169.  
  2170.  
  2171. def uCSIsCyrillicSupplement(code):
  2172.     ret = libxml2mod.xmlUCSIsCyrillicSupplement(code)
  2173.     return ret
  2174.  
  2175.  
  2176. def uCSIsDeseret(code):
  2177.     ret = libxml2mod.xmlUCSIsDeseret(code)
  2178.     return ret
  2179.  
  2180.  
  2181. def uCSIsDevanagari(code):
  2182.     ret = libxml2mod.xmlUCSIsDevanagari(code)
  2183.     return ret
  2184.  
  2185.  
  2186. def uCSIsDingbats(code):
  2187.     ret = libxml2mod.xmlUCSIsDingbats(code)
  2188.     return ret
  2189.  
  2190.  
  2191. def uCSIsEnclosedAlphanumerics(code):
  2192.     ret = libxml2mod.xmlUCSIsEnclosedAlphanumerics(code)
  2193.     return ret
  2194.  
  2195.  
  2196. def uCSIsEnclosedCJKLettersandMonths(code):
  2197.     ret = libxml2mod.xmlUCSIsEnclosedCJKLettersandMonths(code)
  2198.     return ret
  2199.  
  2200.  
  2201. def uCSIsEthiopic(code):
  2202.     ret = libxml2mod.xmlUCSIsEthiopic(code)
  2203.     return ret
  2204.  
  2205.  
  2206. def uCSIsGeneralPunctuation(code):
  2207.     ret = libxml2mod.xmlUCSIsGeneralPunctuation(code)
  2208.     return ret
  2209.  
  2210.  
  2211. def uCSIsGeometricShapes(code):
  2212.     ret = libxml2mod.xmlUCSIsGeometricShapes(code)
  2213.     return ret
  2214.  
  2215.  
  2216. def uCSIsGeorgian(code):
  2217.     ret = libxml2mod.xmlUCSIsGeorgian(code)
  2218.     return ret
  2219.  
  2220.  
  2221. def uCSIsGothic(code):
  2222.     ret = libxml2mod.xmlUCSIsGothic(code)
  2223.     return ret
  2224.  
  2225.  
  2226. def uCSIsGreek(code):
  2227.     ret = libxml2mod.xmlUCSIsGreek(code)
  2228.     return ret
  2229.  
  2230.  
  2231. def uCSIsGreekExtended(code):
  2232.     ret = libxml2mod.xmlUCSIsGreekExtended(code)
  2233.     return ret
  2234.  
  2235.  
  2236. def uCSIsGreekandCoptic(code):
  2237.     ret = libxml2mod.xmlUCSIsGreekandCoptic(code)
  2238.     return ret
  2239.  
  2240.  
  2241. def uCSIsGujarati(code):
  2242.     ret = libxml2mod.xmlUCSIsGujarati(code)
  2243.     return ret
  2244.  
  2245.  
  2246. def uCSIsGurmukhi(code):
  2247.     ret = libxml2mod.xmlUCSIsGurmukhi(code)
  2248.     return ret
  2249.  
  2250.  
  2251. def uCSIsHalfwidthandFullwidthForms(code):
  2252.     ret = libxml2mod.xmlUCSIsHalfwidthandFullwidthForms(code)
  2253.     return ret
  2254.  
  2255.  
  2256. def uCSIsHangulCompatibilityJamo(code):
  2257.     ret = libxml2mod.xmlUCSIsHangulCompatibilityJamo(code)
  2258.     return ret
  2259.  
  2260.  
  2261. def uCSIsHangulJamo(code):
  2262.     ret = libxml2mod.xmlUCSIsHangulJamo(code)
  2263.     return ret
  2264.  
  2265.  
  2266. def uCSIsHangulSyllables(code):
  2267.     ret = libxml2mod.xmlUCSIsHangulSyllables(code)
  2268.     return ret
  2269.  
  2270.  
  2271. def uCSIsHanunoo(code):
  2272.     ret = libxml2mod.xmlUCSIsHanunoo(code)
  2273.     return ret
  2274.  
  2275.  
  2276. def uCSIsHebrew(code):
  2277.     ret = libxml2mod.xmlUCSIsHebrew(code)
  2278.     return ret
  2279.  
  2280.  
  2281. def uCSIsHighPrivateUseSurrogates(code):
  2282.     ret = libxml2mod.xmlUCSIsHighPrivateUseSurrogates(code)
  2283.     return ret
  2284.  
  2285.  
  2286. def uCSIsHighSurrogates(code):
  2287.     ret = libxml2mod.xmlUCSIsHighSurrogates(code)
  2288.     return ret
  2289.  
  2290.  
  2291. def uCSIsHiragana(code):
  2292.     ret = libxml2mod.xmlUCSIsHiragana(code)
  2293.     return ret
  2294.  
  2295.  
  2296. def uCSIsIPAExtensions(code):
  2297.     ret = libxml2mod.xmlUCSIsIPAExtensions(code)
  2298.     return ret
  2299.  
  2300.  
  2301. def uCSIsIdeographicDescriptionCharacters(code):
  2302.     ret = libxml2mod.xmlUCSIsIdeographicDescriptionCharacters(code)
  2303.     return ret
  2304.  
  2305.  
  2306. def uCSIsKanbun(code):
  2307.     ret = libxml2mod.xmlUCSIsKanbun(code)
  2308.     return ret
  2309.  
  2310.  
  2311. def uCSIsKangxiRadicals(code):
  2312.     ret = libxml2mod.xmlUCSIsKangxiRadicals(code)
  2313.     return ret
  2314.  
  2315.  
  2316. def uCSIsKannada(code):
  2317.     ret = libxml2mod.xmlUCSIsKannada(code)
  2318.     return ret
  2319.  
  2320.  
  2321. def uCSIsKatakana(code):
  2322.     ret = libxml2mod.xmlUCSIsKatakana(code)
  2323.     return ret
  2324.  
  2325.  
  2326. def uCSIsKatakanaPhoneticExtensions(code):
  2327.     ret = libxml2mod.xmlUCSIsKatakanaPhoneticExtensions(code)
  2328.     return ret
  2329.  
  2330.  
  2331. def uCSIsKhmer(code):
  2332.     ret = libxml2mod.xmlUCSIsKhmer(code)
  2333.     return ret
  2334.  
  2335.  
  2336. def uCSIsKhmerSymbols(code):
  2337.     ret = libxml2mod.xmlUCSIsKhmerSymbols(code)
  2338.     return ret
  2339.  
  2340.  
  2341. def uCSIsLao(code):
  2342.     ret = libxml2mod.xmlUCSIsLao(code)
  2343.     return ret
  2344.  
  2345.  
  2346. def uCSIsLatin1Supplement(code):
  2347.     ret = libxml2mod.xmlUCSIsLatin1Supplement(code)
  2348.     return ret
  2349.  
  2350.  
  2351. def uCSIsLatinExtendedA(code):
  2352.     ret = libxml2mod.xmlUCSIsLatinExtendedA(code)
  2353.     return ret
  2354.  
  2355.  
  2356. def uCSIsLatinExtendedAdditional(code):
  2357.     ret = libxml2mod.xmlUCSIsLatinExtendedAdditional(code)
  2358.     return ret
  2359.  
  2360.  
  2361. def uCSIsLatinExtendedB(code):
  2362.     ret = libxml2mod.xmlUCSIsLatinExtendedB(code)
  2363.     return ret
  2364.  
  2365.  
  2366. def uCSIsLetterlikeSymbols(code):
  2367.     ret = libxml2mod.xmlUCSIsLetterlikeSymbols(code)
  2368.     return ret
  2369.  
  2370.  
  2371. def uCSIsLimbu(code):
  2372.     ret = libxml2mod.xmlUCSIsLimbu(code)
  2373.     return ret
  2374.  
  2375.  
  2376. def uCSIsLinearBIdeograms(code):
  2377.     ret = libxml2mod.xmlUCSIsLinearBIdeograms(code)
  2378.     return ret
  2379.  
  2380.  
  2381. def uCSIsLinearBSyllabary(code):
  2382.     ret = libxml2mod.xmlUCSIsLinearBSyllabary(code)
  2383.     return ret
  2384.  
  2385.  
  2386. def uCSIsLowSurrogates(code):
  2387.     ret = libxml2mod.xmlUCSIsLowSurrogates(code)
  2388.     return ret
  2389.  
  2390.  
  2391. def uCSIsMalayalam(code):
  2392.     ret = libxml2mod.xmlUCSIsMalayalam(code)
  2393.     return ret
  2394.  
  2395.  
  2396. def uCSIsMathematicalAlphanumericSymbols(code):
  2397.     ret = libxml2mod.xmlUCSIsMathematicalAlphanumericSymbols(code)
  2398.     return ret
  2399.  
  2400.  
  2401. def uCSIsMathematicalOperators(code):
  2402.     ret = libxml2mod.xmlUCSIsMathematicalOperators(code)
  2403.     return ret
  2404.  
  2405.  
  2406. def uCSIsMiscellaneousMathematicalSymbolsA(code):
  2407.     ret = libxml2mod.xmlUCSIsMiscellaneousMathematicalSymbolsA(code)
  2408.     return ret
  2409.  
  2410.  
  2411. def uCSIsMiscellaneousMathematicalSymbolsB(code):
  2412.     ret = libxml2mod.xmlUCSIsMiscellaneousMathematicalSymbolsB(code)
  2413.     return ret
  2414.  
  2415.  
  2416. def uCSIsMiscellaneousSymbols(code):
  2417.     ret = libxml2mod.xmlUCSIsMiscellaneousSymbols(code)
  2418.     return ret
  2419.  
  2420.  
  2421. def uCSIsMiscellaneousSymbolsandArrows(code):
  2422.     ret = libxml2mod.xmlUCSIsMiscellaneousSymbolsandArrows(code)
  2423.     return ret
  2424.  
  2425.  
  2426. def uCSIsMiscellaneousTechnical(code):
  2427.     ret = libxml2mod.xmlUCSIsMiscellaneousTechnical(code)
  2428.     return ret
  2429.  
  2430.  
  2431. def uCSIsMongolian(code):
  2432.     ret = libxml2mod.xmlUCSIsMongolian(code)
  2433.     return ret
  2434.  
  2435.  
  2436. def uCSIsMusicalSymbols(code):
  2437.     ret = libxml2mod.xmlUCSIsMusicalSymbols(code)
  2438.     return ret
  2439.  
  2440.  
  2441. def uCSIsMyanmar(code):
  2442.     ret = libxml2mod.xmlUCSIsMyanmar(code)
  2443.     return ret
  2444.  
  2445.  
  2446. def uCSIsNumberForms(code):
  2447.     ret = libxml2mod.xmlUCSIsNumberForms(code)
  2448.     return ret
  2449.  
  2450.  
  2451. def uCSIsOgham(code):
  2452.     ret = libxml2mod.xmlUCSIsOgham(code)
  2453.     return ret
  2454.  
  2455.  
  2456. def uCSIsOldItalic(code):
  2457.     ret = libxml2mod.xmlUCSIsOldItalic(code)
  2458.     return ret
  2459.  
  2460.  
  2461. def uCSIsOpticalCharacterRecognition(code):
  2462.     ret = libxml2mod.xmlUCSIsOpticalCharacterRecognition(code)
  2463.     return ret
  2464.  
  2465.  
  2466. def uCSIsOriya(code):
  2467.     ret = libxml2mod.xmlUCSIsOriya(code)
  2468.     return ret
  2469.  
  2470.  
  2471. def uCSIsOsmanya(code):
  2472.     ret = libxml2mod.xmlUCSIsOsmanya(code)
  2473.     return ret
  2474.  
  2475.  
  2476. def uCSIsPhoneticExtensions(code):
  2477.     ret = libxml2mod.xmlUCSIsPhoneticExtensions(code)
  2478.     return ret
  2479.  
  2480.  
  2481. def uCSIsPrivateUse(code):
  2482.     ret = libxml2mod.xmlUCSIsPrivateUse(code)
  2483.     return ret
  2484.  
  2485.  
  2486. def uCSIsPrivateUseArea(code):
  2487.     ret = libxml2mod.xmlUCSIsPrivateUseArea(code)
  2488.     return ret
  2489.  
  2490.  
  2491. def uCSIsRunic(code):
  2492.     ret = libxml2mod.xmlUCSIsRunic(code)
  2493.     return ret
  2494.  
  2495.  
  2496. def uCSIsShavian(code):
  2497.     ret = libxml2mod.xmlUCSIsShavian(code)
  2498.     return ret
  2499.  
  2500.  
  2501. def uCSIsSinhala(code):
  2502.     ret = libxml2mod.xmlUCSIsSinhala(code)
  2503.     return ret
  2504.  
  2505.  
  2506. def uCSIsSmallFormVariants(code):
  2507.     ret = libxml2mod.xmlUCSIsSmallFormVariants(code)
  2508.     return ret
  2509.  
  2510.  
  2511. def uCSIsSpacingModifierLetters(code):
  2512.     ret = libxml2mod.xmlUCSIsSpacingModifierLetters(code)
  2513.     return ret
  2514.  
  2515.  
  2516. def uCSIsSpecials(code):
  2517.     ret = libxml2mod.xmlUCSIsSpecials(code)
  2518.     return ret
  2519.  
  2520.  
  2521. def uCSIsSuperscriptsandSubscripts(code):
  2522.     ret = libxml2mod.xmlUCSIsSuperscriptsandSubscripts(code)
  2523.     return ret
  2524.  
  2525.  
  2526. def uCSIsSupplementalArrowsA(code):
  2527.     ret = libxml2mod.xmlUCSIsSupplementalArrowsA(code)
  2528.     return ret
  2529.  
  2530.  
  2531. def uCSIsSupplementalArrowsB(code):
  2532.     ret = libxml2mod.xmlUCSIsSupplementalArrowsB(code)
  2533.     return ret
  2534.  
  2535.  
  2536. def uCSIsSupplementalMathematicalOperators(code):
  2537.     ret = libxml2mod.xmlUCSIsSupplementalMathematicalOperators(code)
  2538.     return ret
  2539.  
  2540.  
  2541. def uCSIsSupplementaryPrivateUseAreaA(code):
  2542.     ret = libxml2mod.xmlUCSIsSupplementaryPrivateUseAreaA(code)
  2543.     return ret
  2544.  
  2545.  
  2546. def uCSIsSupplementaryPrivateUseAreaB(code):
  2547.     ret = libxml2mod.xmlUCSIsSupplementaryPrivateUseAreaB(code)
  2548.     return ret
  2549.  
  2550.  
  2551. def uCSIsSyriac(code):
  2552.     ret = libxml2mod.xmlUCSIsSyriac(code)
  2553.     return ret
  2554.  
  2555.  
  2556. def uCSIsTagalog(code):
  2557.     ret = libxml2mod.xmlUCSIsTagalog(code)
  2558.     return ret
  2559.  
  2560.  
  2561. def uCSIsTagbanwa(code):
  2562.     ret = libxml2mod.xmlUCSIsTagbanwa(code)
  2563.     return ret
  2564.  
  2565.  
  2566. def uCSIsTags(code):
  2567.     ret = libxml2mod.xmlUCSIsTags(code)
  2568.     return ret
  2569.  
  2570.  
  2571. def uCSIsTaiLe(code):
  2572.     ret = libxml2mod.xmlUCSIsTaiLe(code)
  2573.     return ret
  2574.  
  2575.  
  2576. def uCSIsTaiXuanJingSymbols(code):
  2577.     ret = libxml2mod.xmlUCSIsTaiXuanJingSymbols(code)
  2578.     return ret
  2579.  
  2580.  
  2581. def uCSIsTamil(code):
  2582.     ret = libxml2mod.xmlUCSIsTamil(code)
  2583.     return ret
  2584.  
  2585.  
  2586. def uCSIsTelugu(code):
  2587.     ret = libxml2mod.xmlUCSIsTelugu(code)
  2588.     return ret
  2589.  
  2590.  
  2591. def uCSIsThaana(code):
  2592.     ret = libxml2mod.xmlUCSIsThaana(code)
  2593.     return ret
  2594.  
  2595.  
  2596. def uCSIsThai(code):
  2597.     ret = libxml2mod.xmlUCSIsThai(code)
  2598.     return ret
  2599.  
  2600.  
  2601. def uCSIsTibetan(code):
  2602.     ret = libxml2mod.xmlUCSIsTibetan(code)
  2603.     return ret
  2604.  
  2605.  
  2606. def uCSIsUgaritic(code):
  2607.     ret = libxml2mod.xmlUCSIsUgaritic(code)
  2608.     return ret
  2609.  
  2610.  
  2611. def uCSIsUnifiedCanadianAboriginalSyllabics(code):
  2612.     ret = libxml2mod.xmlUCSIsUnifiedCanadianAboriginalSyllabics(code)
  2613.     return ret
  2614.  
  2615.  
  2616. def uCSIsVariationSelectors(code):
  2617.     ret = libxml2mod.xmlUCSIsVariationSelectors(code)
  2618.     return ret
  2619.  
  2620.  
  2621. def uCSIsVariationSelectorsSupplement(code):
  2622.     ret = libxml2mod.xmlUCSIsVariationSelectorsSupplement(code)
  2623.     return ret
  2624.  
  2625.  
  2626. def uCSIsYiRadicals(code):
  2627.     ret = libxml2mod.xmlUCSIsYiRadicals(code)
  2628.     return ret
  2629.  
  2630.  
  2631. def uCSIsYiSyllables(code):
  2632.     ret = libxml2mod.xmlUCSIsYiSyllables(code)
  2633.     return ret
  2634.  
  2635.  
  2636. def uCSIsYijingHexagramSymbols(code):
  2637.     ret = libxml2mod.xmlUCSIsYijingHexagramSymbols(code)
  2638.     return ret
  2639.  
  2640.  
  2641. def checkVersion(version):
  2642.     libxml2mod.xmlCheckVersion(version)
  2643.  
  2644.  
  2645. def valuePop(ctxt):
  2646.     if ctxt is None:
  2647.         ctxt__o = None
  2648.     else:
  2649.         ctxt__o = ctxt._o
  2650.     ret = libxml2mod.valuePop(ctxt__o)
  2651.     return ret
  2652.  
  2653.  
  2654. class xmlNode(xmlCore):
  2655.     
  2656.     def __init__(self, _obj = None):
  2657.         if type(_obj).__name__ != 'PyCObject':
  2658.             raise TypeError, 'xmlNode needs a PyCObject argument'
  2659.         type(_obj).__name__ != 'PyCObject'
  2660.         self._o = _obj
  2661.         xmlCore.__init__(self, _obj = _obj)
  2662.  
  2663.     
  2664.     def __repr__(self):
  2665.         return '<xmlNode object at 0x%x>' % (long(pos_id(self)),)
  2666.  
  2667.     
  2668.     def ns(self):
  2669.         ret = libxml2mod.xmlNodeGetNs(self._o)
  2670.         if ret is None:
  2671.             return None
  2672.         _xmlNode__tmp = xmlNs(_obj = ret)
  2673.         return _xmlNode__tmp
  2674.  
  2675.     
  2676.     def nsDefs(self):
  2677.         ret = libxml2mod.xmlNodeGetNsDefs(self._o)
  2678.         if ret is None:
  2679.             return None
  2680.         _xmlNode__tmp = xmlNs(_obj = ret)
  2681.         return _xmlNode__tmp
  2682.  
  2683.     
  2684.     def debugDumpNode(self, output, depth):
  2685.         libxml2mod.xmlDebugDumpNode(output, self._o, depth)
  2686.  
  2687.     
  2688.     def debugDumpNodeList(self, output, depth):
  2689.         libxml2mod.xmlDebugDumpNodeList(output, self._o, depth)
  2690.  
  2691.     
  2692.     def debugDumpOneNode(self, output, depth):
  2693.         libxml2mod.xmlDebugDumpOneNode(output, self._o, depth)
  2694.  
  2695.     
  2696.     def lsCountNode(self):
  2697.         ret = libxml2mod.xmlLsCountNode(self._o)
  2698.         return ret
  2699.  
  2700.     
  2701.     def lsOneNode(self, output):
  2702.         libxml2mod.xmlLsOneNode(output, self._o)
  2703.  
  2704.     
  2705.     def shellPrintNode(self):
  2706.         libxml2mod.xmlShellPrintNode(self._o)
  2707.  
  2708.     
  2709.     def addChild(self, cur):
  2710.         if cur is None:
  2711.             cur__o = None
  2712.         else:
  2713.             cur__o = cur._o
  2714.         ret = libxml2mod.xmlAddChild(self._o, cur__o)
  2715.         if ret is None:
  2716.             raise treeError('xmlAddChild() failed')
  2717.         ret is None
  2718.         _xmlNode__tmp = xmlNode(_obj = ret)
  2719.         return _xmlNode__tmp
  2720.  
  2721.     
  2722.     def addChildList(self, cur):
  2723.         if cur is None:
  2724.             cur__o = None
  2725.         else:
  2726.             cur__o = cur._o
  2727.         ret = libxml2mod.xmlAddChildList(self._o, cur__o)
  2728.         if ret is None:
  2729.             raise treeError('xmlAddChildList() failed')
  2730.         ret is None
  2731.         _xmlNode__tmp = xmlNode(_obj = ret)
  2732.         return _xmlNode__tmp
  2733.  
  2734.     
  2735.     def addContent(self, content):
  2736.         libxml2mod.xmlNodeAddContent(self._o, content)
  2737.  
  2738.     
  2739.     def addContentLen(self, content, len):
  2740.         libxml2mod.xmlNodeAddContentLen(self._o, content, len)
  2741.  
  2742.     
  2743.     def addNextSibling(self, elem):
  2744.         if elem is None:
  2745.             elem__o = None
  2746.         else:
  2747.             elem__o = elem._o
  2748.         ret = libxml2mod.xmlAddNextSibling(self._o, elem__o)
  2749.         if ret is None:
  2750.             raise treeError('xmlAddNextSibling() failed')
  2751.         ret is None
  2752.         _xmlNode__tmp = xmlNode(_obj = ret)
  2753.         return _xmlNode__tmp
  2754.  
  2755.     
  2756.     def addPrevSibling(self, elem):
  2757.         if elem is None:
  2758.             elem__o = None
  2759.         else:
  2760.             elem__o = elem._o
  2761.         ret = libxml2mod.xmlAddPrevSibling(self._o, elem__o)
  2762.         if ret is None:
  2763.             raise treeError('xmlAddPrevSibling() failed')
  2764.         ret is None
  2765.         _xmlNode__tmp = xmlNode(_obj = ret)
  2766.         return _xmlNode__tmp
  2767.  
  2768.     
  2769.     def addSibling(self, elem):
  2770.         if elem is None:
  2771.             elem__o = None
  2772.         else:
  2773.             elem__o = elem._o
  2774.         ret = libxml2mod.xmlAddSibling(self._o, elem__o)
  2775.         if ret is None:
  2776.             raise treeError('xmlAddSibling() failed')
  2777.         ret is None
  2778.         _xmlNode__tmp = xmlNode(_obj = ret)
  2779.         return _xmlNode__tmp
  2780.  
  2781.     
  2782.     def copyNode(self, extended):
  2783.         ret = libxml2mod.xmlCopyNode(self._o, extended)
  2784.         if ret is None:
  2785.             raise treeError('xmlCopyNode() failed')
  2786.         ret is None
  2787.         _xmlNode__tmp = xmlNode(_obj = ret)
  2788.         return _xmlNode__tmp
  2789.  
  2790.     
  2791.     def copyNodeList(self):
  2792.         ret = libxml2mod.xmlCopyNodeList(self._o)
  2793.         if ret is None:
  2794.             raise treeError('xmlCopyNodeList() failed')
  2795.         ret is None
  2796.         _xmlNode__tmp = xmlNode(_obj = ret)
  2797.         return _xmlNode__tmp
  2798.  
  2799.     
  2800.     def copyProp(self, cur):
  2801.         if cur is None:
  2802.             cur__o = None
  2803.         else:
  2804.             cur__o = cur._o
  2805.         ret = libxml2mod.xmlCopyProp(self._o, cur__o)
  2806.         if ret is None:
  2807.             raise treeError('xmlCopyProp() failed')
  2808.         ret is None
  2809.         _xmlNode__tmp = xmlAttr(_obj = ret)
  2810.         return _xmlNode__tmp
  2811.  
  2812.     
  2813.     def copyPropList(self, cur):
  2814.         if cur is None:
  2815.             cur__o = None
  2816.         else:
  2817.             cur__o = cur._o
  2818.         ret = libxml2mod.xmlCopyPropList(self._o, cur__o)
  2819.         if ret is None:
  2820.             raise treeError('xmlCopyPropList() failed')
  2821.         ret is None
  2822.         _xmlNode__tmp = xmlAttr(_obj = ret)
  2823.         return _xmlNode__tmp
  2824.  
  2825.     
  2826.     def docCopyNode(self, doc, extended):
  2827.         if doc is None:
  2828.             doc__o = None
  2829.         else:
  2830.             doc__o = doc._o
  2831.         ret = libxml2mod.xmlDocCopyNode(self._o, doc__o, extended)
  2832.         if ret is None:
  2833.             raise treeError('xmlDocCopyNode() failed')
  2834.         ret is None
  2835.         _xmlNode__tmp = xmlNode(_obj = ret)
  2836.         return _xmlNode__tmp
  2837.  
  2838.     
  2839.     def docCopyNodeList(self, doc):
  2840.         if doc is None:
  2841.             doc__o = None
  2842.         else:
  2843.             doc__o = doc._o
  2844.         ret = libxml2mod.xmlDocCopyNodeList(doc__o, self._o)
  2845.         if ret is None:
  2846.             raise treeError('xmlDocCopyNodeList() failed')
  2847.         ret is None
  2848.         _xmlNode__tmp = xmlNode(_obj = ret)
  2849.         return _xmlNode__tmp
  2850.  
  2851.     
  2852.     def docSetRootElement(self, doc):
  2853.         if doc is None:
  2854.             doc__o = None
  2855.         else:
  2856.             doc__o = doc._o
  2857.         ret = libxml2mod.xmlDocSetRootElement(doc__o, self._o)
  2858.         if ret is None:
  2859.             return None
  2860.         _xmlNode__tmp = xmlNode(_obj = ret)
  2861.         return _xmlNode__tmp
  2862.  
  2863.     
  2864.     def firstElementChild(self):
  2865.         ret = libxml2mod.xmlFirstElementChild(self._o)
  2866.         if ret is None:
  2867.             return None
  2868.         _xmlNode__tmp = xmlNode(_obj = ret)
  2869.         return _xmlNode__tmp
  2870.  
  2871.     
  2872.     def freeNode(self):
  2873.         libxml2mod.xmlFreeNode(self._o)
  2874.  
  2875.     
  2876.     def freeNodeList(self):
  2877.         libxml2mod.xmlFreeNodeList(self._o)
  2878.  
  2879.     
  2880.     def getBase(self, doc):
  2881.         if doc is None:
  2882.             doc__o = None
  2883.         else:
  2884.             doc__o = doc._o
  2885.         ret = libxml2mod.xmlNodeGetBase(doc__o, self._o)
  2886.         return ret
  2887.  
  2888.     
  2889.     def getContent(self):
  2890.         ret = libxml2mod.xmlNodeGetContent(self._o)
  2891.         return ret
  2892.  
  2893.     
  2894.     def getLang(self):
  2895.         ret = libxml2mod.xmlNodeGetLang(self._o)
  2896.         return ret
  2897.  
  2898.     
  2899.     def getSpacePreserve(self):
  2900.         ret = libxml2mod.xmlNodeGetSpacePreserve(self._o)
  2901.         return ret
  2902.  
  2903.     
  2904.     def hasNsProp(self, name, nameSpace):
  2905.         ret = libxml2mod.xmlHasNsProp(self._o, name, nameSpace)
  2906.         if ret is None:
  2907.             return None
  2908.         _xmlNode__tmp = xmlAttr(_obj = ret)
  2909.         return _xmlNode__tmp
  2910.  
  2911.     
  2912.     def hasProp(self, name):
  2913.         ret = libxml2mod.xmlHasProp(self._o, name)
  2914.         if ret is None:
  2915.             return None
  2916.         _xmlNode__tmp = xmlAttr(_obj = ret)
  2917.         return _xmlNode__tmp
  2918.  
  2919.     
  2920.     def isBlankNode(self):
  2921.         ret = libxml2mod.xmlIsBlankNode(self._o)
  2922.         return ret
  2923.  
  2924.     
  2925.     def isText(self):
  2926.         ret = libxml2mod.xmlNodeIsText(self._o)
  2927.         return ret
  2928.  
  2929.     
  2930.     def lastChild(self):
  2931.         ret = libxml2mod.xmlGetLastChild(self._o)
  2932.         if ret is None:
  2933.             raise treeError('xmlGetLastChild() failed')
  2934.         ret is None
  2935.         _xmlNode__tmp = xmlNode(_obj = ret)
  2936.         return _xmlNode__tmp
  2937.  
  2938.     
  2939.     def lastElementChild(self):
  2940.         ret = libxml2mod.xmlLastElementChild(self._o)
  2941.         if ret is None:
  2942.             return None
  2943.         _xmlNode__tmp = xmlNode(_obj = ret)
  2944.         return _xmlNode__tmp
  2945.  
  2946.     
  2947.     def lineNo(self):
  2948.         ret = libxml2mod.xmlGetLineNo(self._o)
  2949.         return ret
  2950.  
  2951.     
  2952.     def listGetRawString(self, doc, inLine):
  2953.         if doc is None:
  2954.             doc__o = None
  2955.         else:
  2956.             doc__o = doc._o
  2957.         ret = libxml2mod.xmlNodeListGetRawString(doc__o, self._o, inLine)
  2958.         return ret
  2959.  
  2960.     
  2961.     def listGetString(self, doc, inLine):
  2962.         if doc is None:
  2963.             doc__o = None
  2964.         else:
  2965.             doc__o = doc._o
  2966.         ret = libxml2mod.xmlNodeListGetString(doc__o, self._o, inLine)
  2967.         return ret
  2968.  
  2969.     
  2970.     def newChild(self, ns, name, content):
  2971.         if ns is None:
  2972.             ns__o = None
  2973.         else:
  2974.             ns__o = ns._o
  2975.         ret = libxml2mod.xmlNewChild(self._o, ns__o, name, content)
  2976.         if ret is None:
  2977.             raise treeError('xmlNewChild() failed')
  2978.         ret is None
  2979.         _xmlNode__tmp = xmlNode(_obj = ret)
  2980.         return _xmlNode__tmp
  2981.  
  2982.     
  2983.     def newNs(self, href, prefix):
  2984.         ret = libxml2mod.xmlNewNs(self._o, href, prefix)
  2985.         if ret is None:
  2986.             raise treeError('xmlNewNs() failed')
  2987.         ret is None
  2988.         _xmlNode__tmp = xmlNs(_obj = ret)
  2989.         return _xmlNode__tmp
  2990.  
  2991.     
  2992.     def newNsProp(self, ns, name, value):
  2993.         if ns is None:
  2994.             ns__o = None
  2995.         else:
  2996.             ns__o = ns._o
  2997.         ret = libxml2mod.xmlNewNsProp(self._o, ns__o, name, value)
  2998.         if ret is None:
  2999.             raise treeError('xmlNewNsProp() failed')
  3000.         ret is None
  3001.         _xmlNode__tmp = xmlAttr(_obj = ret)
  3002.         return _xmlNode__tmp
  3003.  
  3004.     
  3005.     def newNsPropEatName(self, ns, name, value):
  3006.         if ns is None:
  3007.             ns__o = None
  3008.         else:
  3009.             ns__o = ns._o
  3010.         ret = libxml2mod.xmlNewNsPropEatName(self._o, ns__o, name, value)
  3011.         if ret is None:
  3012.             raise treeError('xmlNewNsPropEatName() failed')
  3013.         ret is None
  3014.         _xmlNode__tmp = xmlAttr(_obj = ret)
  3015.         return _xmlNode__tmp
  3016.  
  3017.     
  3018.     def newProp(self, name, value):
  3019.         ret = libxml2mod.xmlNewProp(self._o, name, value)
  3020.         if ret is None:
  3021.             raise treeError('xmlNewProp() failed')
  3022.         ret is None
  3023.         _xmlNode__tmp = xmlAttr(_obj = ret)
  3024.         return _xmlNode__tmp
  3025.  
  3026.     
  3027.     def newTextChild(self, ns, name, content):
  3028.         if ns is None:
  3029.             ns__o = None
  3030.         else:
  3031.             ns__o = ns._o
  3032.         ret = libxml2mod.xmlNewTextChild(self._o, ns__o, name, content)
  3033.         if ret is None:
  3034.             raise treeError('xmlNewTextChild() failed')
  3035.         ret is None
  3036.         _xmlNode__tmp = xmlNode(_obj = ret)
  3037.         return _xmlNode__tmp
  3038.  
  3039.     
  3040.     def nextElementSibling(self):
  3041.         ret = libxml2mod.xmlNextElementSibling(self._o)
  3042.         if ret is None:
  3043.             return None
  3044.         _xmlNode__tmp = xmlNode(_obj = ret)
  3045.         return _xmlNode__tmp
  3046.  
  3047.     
  3048.     def noNsProp(self, name):
  3049.         ret = libxml2mod.xmlGetNoNsProp(self._o, name)
  3050.         return ret
  3051.  
  3052.     
  3053.     def nodePath(self):
  3054.         ret = libxml2mod.xmlGetNodePath(self._o)
  3055.         return ret
  3056.  
  3057.     
  3058.     def nsProp(self, name, nameSpace):
  3059.         ret = libxml2mod.xmlGetNsProp(self._o, name, nameSpace)
  3060.         return ret
  3061.  
  3062.     
  3063.     def previousElementSibling(self):
  3064.         ret = libxml2mod.xmlPreviousElementSibling(self._o)
  3065.         if ret is None:
  3066.             return None
  3067.         _xmlNode__tmp = xmlNode(_obj = ret)
  3068.         return _xmlNode__tmp
  3069.  
  3070.     
  3071.     def prop(self, name):
  3072.         ret = libxml2mod.xmlGetProp(self._o, name)
  3073.         return ret
  3074.  
  3075.     
  3076.     def reconciliateNs(self, doc):
  3077.         if doc is None:
  3078.             doc__o = None
  3079.         else:
  3080.             doc__o = doc._o
  3081.         ret = libxml2mod.xmlReconciliateNs(doc__o, self._o)
  3082.         return ret
  3083.  
  3084.     
  3085.     def replaceNode(self, cur):
  3086.         if cur is None:
  3087.             cur__o = None
  3088.         else:
  3089.             cur__o = cur._o
  3090.         ret = libxml2mod.xmlReplaceNode(self._o, cur__o)
  3091.         if ret is None:
  3092.             raise treeError('xmlReplaceNode() failed')
  3093.         ret is None
  3094.         _xmlNode__tmp = xmlNode(_obj = ret)
  3095.         return _xmlNode__tmp
  3096.  
  3097.     
  3098.     def searchNs(self, doc, nameSpace):
  3099.         if doc is None:
  3100.             doc__o = None
  3101.         else:
  3102.             doc__o = doc._o
  3103.         ret = libxml2mod.xmlSearchNs(doc__o, self._o, nameSpace)
  3104.         if ret is None:
  3105.             raise treeError('xmlSearchNs() failed')
  3106.         ret is None
  3107.         _xmlNode__tmp = xmlNs(_obj = ret)
  3108.         return _xmlNode__tmp
  3109.  
  3110.     
  3111.     def searchNsByHref(self, doc, href):
  3112.         if doc is None:
  3113.             doc__o = None
  3114.         else:
  3115.             doc__o = doc._o
  3116.         ret = libxml2mod.xmlSearchNsByHref(doc__o, self._o, href)
  3117.         if ret is None:
  3118.             raise treeError('xmlSearchNsByHref() failed')
  3119.         ret is None
  3120.         _xmlNode__tmp = xmlNs(_obj = ret)
  3121.         return _xmlNode__tmp
  3122.  
  3123.     
  3124.     def setBase(self, uri):
  3125.         libxml2mod.xmlNodeSetBase(self._o, uri)
  3126.  
  3127.     
  3128.     def setContent(self, content):
  3129.         libxml2mod.xmlNodeSetContent(self._o, content)
  3130.  
  3131.     
  3132.     def setContentLen(self, content, len):
  3133.         libxml2mod.xmlNodeSetContentLen(self._o, content, len)
  3134.  
  3135.     
  3136.     def setLang(self, lang):
  3137.         libxml2mod.xmlNodeSetLang(self._o, lang)
  3138.  
  3139.     
  3140.     def setListDoc(self, doc):
  3141.         if doc is None:
  3142.             doc__o = None
  3143.         else:
  3144.             doc__o = doc._o
  3145.         libxml2mod.xmlSetListDoc(self._o, doc__o)
  3146.  
  3147.     
  3148.     def setName(self, name):
  3149.         libxml2mod.xmlNodeSetName(self._o, name)
  3150.  
  3151.     
  3152.     def setNs(self, ns):
  3153.         if ns is None:
  3154.             ns__o = None
  3155.         else:
  3156.             ns__o = ns._o
  3157.         libxml2mod.xmlSetNs(self._o, ns__o)
  3158.  
  3159.     
  3160.     def setNsProp(self, ns, name, value):
  3161.         if ns is None:
  3162.             ns__o = None
  3163.         else:
  3164.             ns__o = ns._o
  3165.         ret = libxml2mod.xmlSetNsProp(self._o, ns__o, name, value)
  3166.         if ret is None:
  3167.             raise treeError('xmlSetNsProp() failed')
  3168.         ret is None
  3169.         _xmlNode__tmp = xmlAttr(_obj = ret)
  3170.         return _xmlNode__tmp
  3171.  
  3172.     
  3173.     def setProp(self, name, value):
  3174.         ret = libxml2mod.xmlSetProp(self._o, name, value)
  3175.         if ret is None:
  3176.             raise treeError('xmlSetProp() failed')
  3177.         ret is None
  3178.         _xmlNode__tmp = xmlAttr(_obj = ret)
  3179.         return _xmlNode__tmp
  3180.  
  3181.     
  3182.     def setSpacePreserve(self, val):
  3183.         libxml2mod.xmlNodeSetSpacePreserve(self._o, val)
  3184.  
  3185.     
  3186.     def setTreeDoc(self, doc):
  3187.         if doc is None:
  3188.             doc__o = None
  3189.         else:
  3190.             doc__o = doc._o
  3191.         libxml2mod.xmlSetTreeDoc(self._o, doc__o)
  3192.  
  3193.     
  3194.     def textConcat(self, content, len):
  3195.         ret = libxml2mod.xmlTextConcat(self._o, content, len)
  3196.         return ret
  3197.  
  3198.     
  3199.     def textMerge(self, second):
  3200.         if second is None:
  3201.             second__o = None
  3202.         else:
  3203.             second__o = second._o
  3204.         ret = libxml2mod.xmlTextMerge(self._o, second__o)
  3205.         if ret is None:
  3206.             raise treeError('xmlTextMerge() failed')
  3207.         ret is None
  3208.         _xmlNode__tmp = xmlNode(_obj = ret)
  3209.         return _xmlNode__tmp
  3210.  
  3211.     
  3212.     def unlinkNode(self):
  3213.         libxml2mod.xmlUnlinkNode(self._o)
  3214.  
  3215.     
  3216.     def unsetNsProp(self, ns, name):
  3217.         if ns is None:
  3218.             ns__o = None
  3219.         else:
  3220.             ns__o = ns._o
  3221.         ret = libxml2mod.xmlUnsetNsProp(self._o, ns__o, name)
  3222.         return ret
  3223.  
  3224.     
  3225.     def unsetProp(self, name):
  3226.         ret = libxml2mod.xmlUnsetProp(self._o, name)
  3227.         return ret
  3228.  
  3229.     
  3230.     def isID(self, doc, attr):
  3231.         if doc is None:
  3232.             doc__o = None
  3233.         else:
  3234.             doc__o = doc._o
  3235.         if attr is None:
  3236.             attr__o = None
  3237.         else:
  3238.             attr__o = attr._o
  3239.         ret = libxml2mod.xmlIsID(doc__o, self._o, attr__o)
  3240.         return ret
  3241.  
  3242.     
  3243.     def isRef(self, doc, attr):
  3244.         if doc is None:
  3245.             doc__o = None
  3246.         else:
  3247.             doc__o = doc._o
  3248.         if attr is None:
  3249.             attr__o = None
  3250.         else:
  3251.             attr__o = attr._o
  3252.         ret = libxml2mod.xmlIsRef(doc__o, self._o, attr__o)
  3253.         return ret
  3254.  
  3255.     
  3256.     def validNormalizeAttributeValue(self, doc, name, value):
  3257.         if doc is None:
  3258.             doc__o = None
  3259.         else:
  3260.             doc__o = doc._o
  3261.         ret = libxml2mod.xmlValidNormalizeAttributeValue(doc__o, self._o, name, value)
  3262.         return ret
  3263.  
  3264.     
  3265.     def xincludeProcessTree(self):
  3266.         ret = libxml2mod.xmlXIncludeProcessTree(self._o)
  3267.         return ret
  3268.  
  3269.     
  3270.     def xincludeProcessTreeFlags(self, flags):
  3271.         ret = libxml2mod.xmlXIncludeProcessTreeFlags(self._o, flags)
  3272.         return ret
  3273.  
  3274.     
  3275.     def schemaValidateOneElement(self, ctxt):
  3276.         if ctxt is None:
  3277.             ctxt__o = None
  3278.         else:
  3279.             ctxt__o = ctxt._o
  3280.         ret = libxml2mod.xmlSchemaValidateOneElement(ctxt__o, self._o)
  3281.         return ret
  3282.  
  3283.     
  3284.     def xpathCastNodeToNumber(self):
  3285.         ret = libxml2mod.xmlXPathCastNodeToNumber(self._o)
  3286.         return ret
  3287.  
  3288.     
  3289.     def xpathCastNodeToString(self):
  3290.         ret = libxml2mod.xmlXPathCastNodeToString(self._o)
  3291.         return ret
  3292.  
  3293.     
  3294.     def xpathCmpNodes(self, node2):
  3295.         if node2 is None:
  3296.             node2__o = None
  3297.         else:
  3298.             node2__o = node2._o
  3299.         ret = libxml2mod.xmlXPathCmpNodes(self._o, node2__o)
  3300.         return ret
  3301.  
  3302.     
  3303.     def xpathNewNodeSet(self):
  3304.         ret = libxml2mod.xmlXPathNewNodeSet(self._o)
  3305.         if ret is None:
  3306.             raise xpathError('xmlXPathNewNodeSet() failed')
  3307.         ret is None
  3308.         return xpathObjectRet(ret)
  3309.  
  3310.     
  3311.     def xpathNewValueTree(self):
  3312.         ret = libxml2mod.xmlXPathNewValueTree(self._o)
  3313.         if ret is None:
  3314.             raise xpathError('xmlXPathNewValueTree() failed')
  3315.         ret is None
  3316.         return xpathObjectRet(ret)
  3317.  
  3318.     
  3319.     def xpathNextAncestor(self, ctxt):
  3320.         if ctxt is None:
  3321.             ctxt__o = None
  3322.         else:
  3323.             ctxt__o = ctxt._o
  3324.         ret = libxml2mod.xmlXPathNextAncestor(ctxt__o, self._o)
  3325.         if ret is None:
  3326.             raise xpathError('xmlXPathNextAncestor() failed')
  3327.         ret is None
  3328.         _xmlNode__tmp = xmlNode(_obj = ret)
  3329.         return _xmlNode__tmp
  3330.  
  3331.     
  3332.     def xpathNextAncestorOrSelf(self, ctxt):
  3333.         if ctxt is None:
  3334.             ctxt__o = None
  3335.         else:
  3336.             ctxt__o = ctxt._o
  3337.         ret = libxml2mod.xmlXPathNextAncestorOrSelf(ctxt__o, self._o)
  3338.         if ret is None:
  3339.             raise xpathError('xmlXPathNextAncestorOrSelf() failed')
  3340.         ret is None
  3341.         _xmlNode__tmp = xmlNode(_obj = ret)
  3342.         return _xmlNode__tmp
  3343.  
  3344.     
  3345.     def xpathNextAttribute(self, ctxt):
  3346.         if ctxt is None:
  3347.             ctxt__o = None
  3348.         else:
  3349.             ctxt__o = ctxt._o
  3350.         ret = libxml2mod.xmlXPathNextAttribute(ctxt__o, self._o)
  3351.         if ret is None:
  3352.             raise xpathError('xmlXPathNextAttribute() failed')
  3353.         ret is None
  3354.         _xmlNode__tmp = xmlNode(_obj = ret)
  3355.         return _xmlNode__tmp
  3356.  
  3357.     
  3358.     def xpathNextChild(self, ctxt):
  3359.         if ctxt is None:
  3360.             ctxt__o = None
  3361.         else:
  3362.             ctxt__o = ctxt._o
  3363.         ret = libxml2mod.xmlXPathNextChild(ctxt__o, self._o)
  3364.         if ret is None:
  3365.             raise xpathError('xmlXPathNextChild() failed')
  3366.         ret is None
  3367.         _xmlNode__tmp = xmlNode(_obj = ret)
  3368.         return _xmlNode__tmp
  3369.  
  3370.     
  3371.     def xpathNextDescendant(self, ctxt):
  3372.         if ctxt is None:
  3373.             ctxt__o = None
  3374.         else:
  3375.             ctxt__o = ctxt._o
  3376.         ret = libxml2mod.xmlXPathNextDescendant(ctxt__o, self._o)
  3377.         if ret is None:
  3378.             raise xpathError('xmlXPathNextDescendant() failed')
  3379.         ret is None
  3380.         _xmlNode__tmp = xmlNode(_obj = ret)
  3381.         return _xmlNode__tmp
  3382.  
  3383.     
  3384.     def xpathNextDescendantOrSelf(self, ctxt):
  3385.         if ctxt is None:
  3386.             ctxt__o = None
  3387.         else:
  3388.             ctxt__o = ctxt._o
  3389.         ret = libxml2mod.xmlXPathNextDescendantOrSelf(ctxt__o, self._o)
  3390.         if ret is None:
  3391.             raise xpathError('xmlXPathNextDescendantOrSelf() failed')
  3392.         ret is None
  3393.         _xmlNode__tmp = xmlNode(_obj = ret)
  3394.         return _xmlNode__tmp
  3395.  
  3396.     
  3397.     def xpathNextFollowing(self, ctxt):
  3398.         if ctxt is None:
  3399.             ctxt__o = None
  3400.         else:
  3401.             ctxt__o = ctxt._o
  3402.         ret = libxml2mod.xmlXPathNextFollowing(ctxt__o, self._o)
  3403.         if ret is None:
  3404.             raise xpathError('xmlXPathNextFollowing() failed')
  3405.         ret is None
  3406.         _xmlNode__tmp = xmlNode(_obj = ret)
  3407.         return _xmlNode__tmp
  3408.  
  3409.     
  3410.     def xpathNextFollowingSibling(self, ctxt):
  3411.         if ctxt is None:
  3412.             ctxt__o = None
  3413.         else:
  3414.             ctxt__o = ctxt._o
  3415.         ret = libxml2mod.xmlXPathNextFollowingSibling(ctxt__o, self._o)
  3416.         if ret is None:
  3417.             raise xpathError('xmlXPathNextFollowingSibling() failed')
  3418.         ret is None
  3419.         _xmlNode__tmp = xmlNode(_obj = ret)
  3420.         return _xmlNode__tmp
  3421.  
  3422.     
  3423.     def xpathNextNamespace(self, ctxt):
  3424.         if ctxt is None:
  3425.             ctxt__o = None
  3426.         else:
  3427.             ctxt__o = ctxt._o
  3428.         ret = libxml2mod.xmlXPathNextNamespace(ctxt__o, self._o)
  3429.         if ret is None:
  3430.             raise xpathError('xmlXPathNextNamespace() failed')
  3431.         ret is None
  3432.         _xmlNode__tmp = xmlNode(_obj = ret)
  3433.         return _xmlNode__tmp
  3434.  
  3435.     
  3436.     def xpathNextParent(self, ctxt):
  3437.         if ctxt is None:
  3438.             ctxt__o = None
  3439.         else:
  3440.             ctxt__o = ctxt._o
  3441.         ret = libxml2mod.xmlXPathNextParent(ctxt__o, self._o)
  3442.         if ret is None:
  3443.             raise xpathError('xmlXPathNextParent() failed')
  3444.         ret is None
  3445.         _xmlNode__tmp = xmlNode(_obj = ret)
  3446.         return _xmlNode__tmp
  3447.  
  3448.     
  3449.     def xpathNextPreceding(self, ctxt):
  3450.         if ctxt is None:
  3451.             ctxt__o = None
  3452.         else:
  3453.             ctxt__o = ctxt._o
  3454.         ret = libxml2mod.xmlXPathNextPreceding(ctxt__o, self._o)
  3455.         if ret is None:
  3456.             raise xpathError('xmlXPathNextPreceding() failed')
  3457.         ret is None
  3458.         _xmlNode__tmp = xmlNode(_obj = ret)
  3459.         return _xmlNode__tmp
  3460.  
  3461.     
  3462.     def xpathNextPrecedingSibling(self, ctxt):
  3463.         if ctxt is None:
  3464.             ctxt__o = None
  3465.         else:
  3466.             ctxt__o = ctxt._o
  3467.         ret = libxml2mod.xmlXPathNextPrecedingSibling(ctxt__o, self._o)
  3468.         if ret is None:
  3469.             raise xpathError('xmlXPathNextPrecedingSibling() failed')
  3470.         ret is None
  3471.         _xmlNode__tmp = xmlNode(_obj = ret)
  3472.         return _xmlNode__tmp
  3473.  
  3474.     
  3475.     def xpathNextSelf(self, ctxt):
  3476.         if ctxt is None:
  3477.             ctxt__o = None
  3478.         else:
  3479.             ctxt__o = ctxt._o
  3480.         ret = libxml2mod.xmlXPathNextSelf(ctxt__o, self._o)
  3481.         if ret is None:
  3482.             raise xpathError('xmlXPathNextSelf() failed')
  3483.         ret is None
  3484.         _xmlNode__tmp = xmlNode(_obj = ret)
  3485.         return _xmlNode__tmp
  3486.  
  3487.     
  3488.     def xpointerNewCollapsedRange(self):
  3489.         ret = libxml2mod.xmlXPtrNewCollapsedRange(self._o)
  3490.         if ret is None:
  3491.             raise treeError('xmlXPtrNewCollapsedRange() failed')
  3492.         ret is None
  3493.         return xpathObjectRet(ret)
  3494.  
  3495.     
  3496.     def xpointerNewContext(self, doc, origin):
  3497.         if doc is None:
  3498.             doc__o = None
  3499.         else:
  3500.             doc__o = doc._o
  3501.         if origin is None:
  3502.             origin__o = None
  3503.         else:
  3504.             origin__o = origin._o
  3505.         ret = libxml2mod.xmlXPtrNewContext(doc__o, self._o, origin__o)
  3506.         if ret is None:
  3507.             raise treeError('xmlXPtrNewContext() failed')
  3508.         ret is None
  3509.         _xmlNode__tmp = xpathContext(_obj = ret)
  3510.         return _xmlNode__tmp
  3511.  
  3512.     
  3513.     def xpointerNewLocationSetNodes(self, end):
  3514.         if end is None:
  3515.             end__o = None
  3516.         else:
  3517.             end__o = end._o
  3518.         ret = libxml2mod.xmlXPtrNewLocationSetNodes(self._o, end__o)
  3519.         if ret is None:
  3520.             raise treeError('xmlXPtrNewLocationSetNodes() failed')
  3521.         ret is None
  3522.         return xpathObjectRet(ret)
  3523.  
  3524.     
  3525.     def xpointerNewRange(self, startindex, end, endindex):
  3526.         if end is None:
  3527.             end__o = None
  3528.         else:
  3529.             end__o = end._o
  3530.         ret = libxml2mod.xmlXPtrNewRange(self._o, startindex, end__o, endindex)
  3531.         if ret is None:
  3532.             raise treeError('xmlXPtrNewRange() failed')
  3533.         ret is None
  3534.         return xpathObjectRet(ret)
  3535.  
  3536.     
  3537.     def xpointerNewRangeNodes(self, end):
  3538.         if end is None:
  3539.             end__o = None
  3540.         else:
  3541.             end__o = end._o
  3542.         ret = libxml2mod.xmlXPtrNewRangeNodes(self._o, end__o)
  3543.         if ret is None:
  3544.             raise treeError('xmlXPtrNewRangeNodes() failed')
  3545.         ret is None
  3546.         return xpathObjectRet(ret)
  3547.  
  3548.  
  3549.  
  3550. class xmlDoc(xmlNode):
  3551.     
  3552.     def __init__(self, _obj = None):
  3553.         if type(_obj).__name__ != 'PyCObject':
  3554.             raise TypeError, 'xmlDoc needs a PyCObject argument'
  3555.         type(_obj).__name__ != 'PyCObject'
  3556.         self._o = _obj
  3557.         xmlNode.__init__(self, _obj = _obj)
  3558.  
  3559.     
  3560.     def __repr__(self):
  3561.         return '<xmlDoc object at 0x%x>' % (long(pos_id(self)),)
  3562.  
  3563.     
  3564.     def htmlAutoCloseTag(self, name, elem):
  3565.         ret = libxml2mod.htmlAutoCloseTag(self._o, name, elem)
  3566.         return ret
  3567.  
  3568.     
  3569.     def htmlIsAutoClosed(self, elem):
  3570.         ret = libxml2mod.htmlIsAutoClosed(self._o, elem)
  3571.         return ret
  3572.  
  3573.     
  3574.     def htmlDocContentDumpFormatOutput(self, buf, encoding, format):
  3575.         if buf is None:
  3576.             buf__o = None
  3577.         else:
  3578.             buf__o = buf._o
  3579.         libxml2mod.htmlDocContentDumpFormatOutput(buf__o, self._o, encoding, format)
  3580.  
  3581.     
  3582.     def htmlDocContentDumpOutput(self, buf, encoding):
  3583.         if buf is None:
  3584.             buf__o = None
  3585.         else:
  3586.             buf__o = buf._o
  3587.         libxml2mod.htmlDocContentDumpOutput(buf__o, self._o, encoding)
  3588.  
  3589.     
  3590.     def htmlDocDump(self, f):
  3591.         ret = libxml2mod.htmlDocDump(f, self._o)
  3592.         return ret
  3593.  
  3594.     
  3595.     def htmlGetMetaEncoding(self):
  3596.         ret = libxml2mod.htmlGetMetaEncoding(self._o)
  3597.         return ret
  3598.  
  3599.     
  3600.     def htmlNodeDumpFile(self, out, cur):
  3601.         if cur is None:
  3602.             cur__o = None
  3603.         else:
  3604.             cur__o = cur._o
  3605.         libxml2mod.htmlNodeDumpFile(out, self._o, cur__o)
  3606.  
  3607.     
  3608.     def htmlNodeDumpFileFormat(self, out, cur, encoding, format):
  3609.         if cur is None:
  3610.             cur__o = None
  3611.         else:
  3612.             cur__o = cur._o
  3613.         ret = libxml2mod.htmlNodeDumpFileFormat(out, self._o, cur__o, encoding, format)
  3614.         return ret
  3615.  
  3616.     
  3617.     def htmlNodeDumpFormatOutput(self, buf, cur, encoding, format):
  3618.         if buf is None:
  3619.             buf__o = None
  3620.         else:
  3621.             buf__o = buf._o
  3622.         if cur is None:
  3623.             cur__o = None
  3624.         else:
  3625.             cur__o = cur._o
  3626.         libxml2mod.htmlNodeDumpFormatOutput(buf__o, self._o, cur__o, encoding, format)
  3627.  
  3628.     
  3629.     def htmlNodeDumpOutput(self, buf, cur, encoding):
  3630.         if buf is None:
  3631.             buf__o = None
  3632.         else:
  3633.             buf__o = buf._o
  3634.         if cur is None:
  3635.             cur__o = None
  3636.         else:
  3637.             cur__o = cur._o
  3638.         libxml2mod.htmlNodeDumpOutput(buf__o, self._o, cur__o, encoding)
  3639.  
  3640.     
  3641.     def htmlSaveFile(self, filename):
  3642.         ret = libxml2mod.htmlSaveFile(filename, self._o)
  3643.         return ret
  3644.  
  3645.     
  3646.     def htmlSaveFileEnc(self, filename, encoding):
  3647.         ret = libxml2mod.htmlSaveFileEnc(filename, self._o, encoding)
  3648.         return ret
  3649.  
  3650.     
  3651.     def htmlSaveFileFormat(self, filename, encoding, format):
  3652.         ret = libxml2mod.htmlSaveFileFormat(filename, self._o, encoding, format)
  3653.         return ret
  3654.  
  3655.     
  3656.     def htmlSetMetaEncoding(self, encoding):
  3657.         ret = libxml2mod.htmlSetMetaEncoding(self._o, encoding)
  3658.         return ret
  3659.  
  3660.     
  3661.     def debugCheckDocument(self, output):
  3662.         ret = libxml2mod.xmlDebugCheckDocument(output, self._o)
  3663.         return ret
  3664.  
  3665.     
  3666.     def debugDumpDocument(self, output):
  3667.         libxml2mod.xmlDebugDumpDocument(output, self._o)
  3668.  
  3669.     
  3670.     def debugDumpDocumentHead(self, output):
  3671.         libxml2mod.xmlDebugDumpDocumentHead(output, self._o)
  3672.  
  3673.     
  3674.     def debugDumpEntities(self, output):
  3675.         libxml2mod.xmlDebugDumpEntities(output, self._o)
  3676.  
  3677.     
  3678.     def addDocEntity(self, name, type, ExternalID, SystemID, content):
  3679.         ret = libxml2mod.xmlAddDocEntity(self._o, name, type, ExternalID, SystemID, content)
  3680.         if ret is None:
  3681.             raise treeError('xmlAddDocEntity() failed')
  3682.         ret is None
  3683.         _xmlDoc__tmp = xmlEntity(_obj = ret)
  3684.         return _xmlDoc__tmp
  3685.  
  3686.     
  3687.     def addDtdEntity(self, name, type, ExternalID, SystemID, content):
  3688.         ret = libxml2mod.xmlAddDtdEntity(self._o, name, type, ExternalID, SystemID, content)
  3689.         if ret is None:
  3690.             raise treeError('xmlAddDtdEntity() failed')
  3691.         ret is None
  3692.         _xmlDoc__tmp = xmlEntity(_obj = ret)
  3693.         return _xmlDoc__tmp
  3694.  
  3695.     
  3696.     def docEntity(self, name):
  3697.         ret = libxml2mod.xmlGetDocEntity(self._o, name)
  3698.         if ret is None:
  3699.             raise treeError('xmlGetDocEntity() failed')
  3700.         ret is None
  3701.         _xmlDoc__tmp = xmlEntity(_obj = ret)
  3702.         return _xmlDoc__tmp
  3703.  
  3704.     
  3705.     def dtdEntity(self, name):
  3706.         ret = libxml2mod.xmlGetDtdEntity(self._o, name)
  3707.         if ret is None:
  3708.             raise treeError('xmlGetDtdEntity() failed')
  3709.         ret is None
  3710.         _xmlDoc__tmp = xmlEntity(_obj = ret)
  3711.         return _xmlDoc__tmp
  3712.  
  3713.     
  3714.     def encodeEntities(self, input):
  3715.         ret = libxml2mod.xmlEncodeEntities(self._o, input)
  3716.         return ret
  3717.  
  3718.     
  3719.     def encodeEntitiesReentrant(self, input):
  3720.         ret = libxml2mod.xmlEncodeEntitiesReentrant(self._o, input)
  3721.         return ret
  3722.  
  3723.     
  3724.     def encodeSpecialChars(self, input):
  3725.         ret = libxml2mod.xmlEncodeSpecialChars(self._o, input)
  3726.         return ret
  3727.  
  3728.     
  3729.     def newEntity(self, name, type, ExternalID, SystemID, content):
  3730.         ret = libxml2mod.xmlNewEntity(self._o, name, type, ExternalID, SystemID, content)
  3731.         if ret is None:
  3732.             raise treeError('xmlNewEntity() failed')
  3733.         ret is None
  3734.         _xmlDoc__tmp = xmlEntity(_obj = ret)
  3735.         return _xmlDoc__tmp
  3736.  
  3737.     
  3738.     def parameterEntity(self, name):
  3739.         ret = libxml2mod.xmlGetParameterEntity(self._o, name)
  3740.         if ret is None:
  3741.             raise treeError('xmlGetParameterEntity() failed')
  3742.         ret is None
  3743.         _xmlDoc__tmp = xmlEntity(_obj = ret)
  3744.         return _xmlDoc__tmp
  3745.  
  3746.     
  3747.     def relaxNGNewDocParserCtxt(self):
  3748.         ret = libxml2mod.xmlRelaxNGNewDocParserCtxt(self._o)
  3749.         if ret is None:
  3750.             raise parserError('xmlRelaxNGNewDocParserCtxt() failed')
  3751.         ret is None
  3752.         _xmlDoc__tmp = relaxNgParserCtxt(_obj = ret)
  3753.         return _xmlDoc__tmp
  3754.  
  3755.     
  3756.     def relaxNGValidateDoc(self, ctxt):
  3757.         if ctxt is None:
  3758.             ctxt__o = None
  3759.         else:
  3760.             ctxt__o = ctxt._o
  3761.         ret = libxml2mod.xmlRelaxNGValidateDoc(ctxt__o, self._o)
  3762.         return ret
  3763.  
  3764.     
  3765.     def relaxNGValidateFullElement(self, ctxt, elem):
  3766.         if ctxt is None:
  3767.             ctxt__o = None
  3768.         else:
  3769.             ctxt__o = ctxt._o
  3770.         if elem is None:
  3771.             elem__o = None
  3772.         else:
  3773.             elem__o = elem._o
  3774.         ret = libxml2mod.xmlRelaxNGValidateFullElement(ctxt__o, self._o, elem__o)
  3775.         return ret
  3776.  
  3777.     
  3778.     def relaxNGValidatePopElement(self, ctxt, elem):
  3779.         if ctxt is None:
  3780.             ctxt__o = None
  3781.         else:
  3782.             ctxt__o = ctxt._o
  3783.         if elem is None:
  3784.             elem__o = None
  3785.         else:
  3786.             elem__o = elem._o
  3787.         ret = libxml2mod.xmlRelaxNGValidatePopElement(ctxt__o, self._o, elem__o)
  3788.         return ret
  3789.  
  3790.     
  3791.     def relaxNGValidatePushElement(self, ctxt, elem):
  3792.         if ctxt is None:
  3793.             ctxt__o = None
  3794.         else:
  3795.             ctxt__o = ctxt._o
  3796.         if elem is None:
  3797.             elem__o = None
  3798.         else:
  3799.             elem__o = elem._o
  3800.         ret = libxml2mod.xmlRelaxNGValidatePushElement(ctxt__o, self._o, elem__o)
  3801.         return ret
  3802.  
  3803.     
  3804.     def copyDoc(self, recursive):
  3805.         ret = libxml2mod.xmlCopyDoc(self._o, recursive)
  3806.         if ret is None:
  3807.             raise treeError('xmlCopyDoc() failed')
  3808.         ret is None
  3809.         _xmlDoc__tmp = xmlDoc(_obj = ret)
  3810.         return _xmlDoc__tmp
  3811.  
  3812.     
  3813.     def copyNode(self, node, extended):
  3814.         if node is None:
  3815.             node__o = None
  3816.         else:
  3817.             node__o = node._o
  3818.         ret = libxml2mod.xmlDocCopyNode(node__o, self._o, extended)
  3819.         if ret is None:
  3820.             raise treeError('xmlDocCopyNode() failed')
  3821.         ret is None
  3822.         _xmlDoc__tmp = xmlNode(_obj = ret)
  3823.         return _xmlDoc__tmp
  3824.  
  3825.     
  3826.     def copyNodeList(self, node):
  3827.         if node is None:
  3828.             node__o = None
  3829.         else:
  3830.             node__o = node._o
  3831.         ret = libxml2mod.xmlDocCopyNodeList(self._o, node__o)
  3832.         if ret is None:
  3833.             raise treeError('xmlDocCopyNodeList() failed')
  3834.         ret is None
  3835.         _xmlDoc__tmp = xmlNode(_obj = ret)
  3836.         return _xmlDoc__tmp
  3837.  
  3838.     
  3839.     def createIntSubset(self, name, ExternalID, SystemID):
  3840.         ret = libxml2mod.xmlCreateIntSubset(self._o, name, ExternalID, SystemID)
  3841.         if ret is None:
  3842.             raise treeError('xmlCreateIntSubset() failed')
  3843.         ret is None
  3844.         _xmlDoc__tmp = xmlDtd(_obj = ret)
  3845.         return _xmlDoc__tmp
  3846.  
  3847.     
  3848.     def docCompressMode(self):
  3849.         ret = libxml2mod.xmlGetDocCompressMode(self._o)
  3850.         return ret
  3851.  
  3852.     
  3853.     def dump(self, f):
  3854.         ret = libxml2mod.xmlDocDump(f, self._o)
  3855.         return ret
  3856.  
  3857.     
  3858.     def elemDump(self, f, cur):
  3859.         if cur is None:
  3860.             cur__o = None
  3861.         else:
  3862.             cur__o = cur._o
  3863.         libxml2mod.xmlElemDump(f, self._o, cur__o)
  3864.  
  3865.     
  3866.     def formatDump(self, f, format):
  3867.         ret = libxml2mod.xmlDocFormatDump(f, self._o, format)
  3868.         return ret
  3869.  
  3870.     
  3871.     def freeDoc(self):
  3872.         libxml2mod.xmlFreeDoc(self._o)
  3873.  
  3874.     
  3875.     def getRootElement(self):
  3876.         ret = libxml2mod.xmlDocGetRootElement(self._o)
  3877.         if ret is None:
  3878.             raise treeError('xmlDocGetRootElement() failed')
  3879.         ret is None
  3880.         _xmlDoc__tmp = xmlNode(_obj = ret)
  3881.         return _xmlDoc__tmp
  3882.  
  3883.     
  3884.     def intSubset(self):
  3885.         ret = libxml2mod.xmlGetIntSubset(self._o)
  3886.         if ret is None:
  3887.             raise treeError('xmlGetIntSubset() failed')
  3888.         ret is None
  3889.         _xmlDoc__tmp = xmlDtd(_obj = ret)
  3890.         return _xmlDoc__tmp
  3891.  
  3892.     
  3893.     def newCDataBlock(self, content, len):
  3894.         ret = libxml2mod.xmlNewCDataBlock(self._o, content, len)
  3895.         if ret is None:
  3896.             raise treeError('xmlNewCDataBlock() failed')
  3897.         ret is None
  3898.         _xmlDoc__tmp = xmlNode(_obj = ret)
  3899.         return _xmlDoc__tmp
  3900.  
  3901.     
  3902.     def newCharRef(self, name):
  3903.         ret = libxml2mod.xmlNewCharRef(self._o, name)
  3904.         if ret is None:
  3905.             raise treeError('xmlNewCharRef() failed')
  3906.         ret is None
  3907.         _xmlDoc__tmp = xmlNode(_obj = ret)
  3908.         return _xmlDoc__tmp
  3909.  
  3910.     
  3911.     def newDocComment(self, content):
  3912.         ret = libxml2mod.xmlNewDocComment(self._o, content)
  3913.         if ret is None:
  3914.             raise treeError('xmlNewDocComment() failed')
  3915.         ret is None
  3916.         _xmlDoc__tmp = xmlNode(_obj = ret)
  3917.         return _xmlDoc__tmp
  3918.  
  3919.     
  3920.     def newDocFragment(self):
  3921.         ret = libxml2mod.xmlNewDocFragment(self._o)
  3922.         if ret is None:
  3923.             raise treeError('xmlNewDocFragment() failed')
  3924.         ret is None
  3925.         _xmlDoc__tmp = xmlNode(_obj = ret)
  3926.         return _xmlDoc__tmp
  3927.  
  3928.     
  3929.     def newDocNode(self, ns, name, content):
  3930.         if ns is None:
  3931.             ns__o = None
  3932.         else:
  3933.             ns__o = ns._o
  3934.         ret = libxml2mod.xmlNewDocNode(self._o, ns__o, name, content)
  3935.         if ret is None:
  3936.             raise treeError('xmlNewDocNode() failed')
  3937.         ret is None
  3938.         _xmlDoc__tmp = xmlNode(_obj = ret)
  3939.         return _xmlDoc__tmp
  3940.  
  3941.     
  3942.     def newDocNodeEatName(self, ns, name, content):
  3943.         if ns is None:
  3944.             ns__o = None
  3945.         else:
  3946.             ns__o = ns._o
  3947.         ret = libxml2mod.xmlNewDocNodeEatName(self._o, ns__o, name, content)
  3948.         if ret is None:
  3949.             raise treeError('xmlNewDocNodeEatName() failed')
  3950.         ret is None
  3951.         _xmlDoc__tmp = xmlNode(_obj = ret)
  3952.         return _xmlDoc__tmp
  3953.  
  3954.     
  3955.     def newDocPI(self, name, content):
  3956.         ret = libxml2mod.xmlNewDocPI(self._o, name, content)
  3957.         if ret is None:
  3958.             raise treeError('xmlNewDocPI() failed')
  3959.         ret is None
  3960.         _xmlDoc__tmp = xmlNode(_obj = ret)
  3961.         return _xmlDoc__tmp
  3962.  
  3963.     
  3964.     def newDocProp(self, name, value):
  3965.         ret = libxml2mod.xmlNewDocProp(self._o, name, value)
  3966.         if ret is None:
  3967.             raise treeError('xmlNewDocProp() failed')
  3968.         ret is None
  3969.         _xmlDoc__tmp = xmlAttr(_obj = ret)
  3970.         return _xmlDoc__tmp
  3971.  
  3972.     
  3973.     def newDocRawNode(self, ns, name, content):
  3974.         if ns is None:
  3975.             ns__o = None
  3976.         else:
  3977.             ns__o = ns._o
  3978.         ret = libxml2mod.xmlNewDocRawNode(self._o, ns__o, name, content)
  3979.         if ret is None:
  3980.             raise treeError('xmlNewDocRawNode() failed')
  3981.         ret is None
  3982.         _xmlDoc__tmp = xmlNode(_obj = ret)
  3983.         return _xmlDoc__tmp
  3984.  
  3985.     
  3986.     def newDocText(self, content):
  3987.         ret = libxml2mod.xmlNewDocText(self._o, content)
  3988.         if ret is None:
  3989.             raise treeError('xmlNewDocText() failed')
  3990.         ret is None
  3991.         _xmlDoc__tmp = xmlNode(_obj = ret)
  3992.         return _xmlDoc__tmp
  3993.  
  3994.     
  3995.     def newDocTextLen(self, content, len):
  3996.         ret = libxml2mod.xmlNewDocTextLen(self._o, content, len)
  3997.         if ret is None:
  3998.             raise treeError('xmlNewDocTextLen() failed')
  3999.         ret is None
  4000.         _xmlDoc__tmp = xmlNode(_obj = ret)
  4001.         return _xmlDoc__tmp
  4002.  
  4003.     
  4004.     def newDtd(self, name, ExternalID, SystemID):
  4005.         ret = libxml2mod.xmlNewDtd(self._o, name, ExternalID, SystemID)
  4006.         if ret is None:
  4007.             raise treeError('xmlNewDtd() failed')
  4008.         ret is None
  4009.         _xmlDoc__tmp = xmlDtd(_obj = ret)
  4010.         return _xmlDoc__tmp
  4011.  
  4012.     
  4013.     def newGlobalNs(self, href, prefix):
  4014.         ret = libxml2mod.xmlNewGlobalNs(self._o, href, prefix)
  4015.         if ret is None:
  4016.             raise treeError('xmlNewGlobalNs() failed')
  4017.         ret is None
  4018.         _xmlDoc__tmp = xmlNs(_obj = ret)
  4019.         return _xmlDoc__tmp
  4020.  
  4021.     
  4022.     def newReference(self, name):
  4023.         ret = libxml2mod.xmlNewReference(self._o, name)
  4024.         if ret is None:
  4025.             raise treeError('xmlNewReference() failed')
  4026.         ret is None
  4027.         _xmlDoc__tmp = xmlNode(_obj = ret)
  4028.         return _xmlDoc__tmp
  4029.  
  4030.     
  4031.     def nodeDumpOutput(self, buf, cur, level, format, encoding):
  4032.         if buf is None:
  4033.             buf__o = None
  4034.         else:
  4035.             buf__o = buf._o
  4036.         if cur is None:
  4037.             cur__o = None
  4038.         else:
  4039.             cur__o = cur._o
  4040.         libxml2mod.xmlNodeDumpOutput(buf__o, self._o, cur__o, level, format, encoding)
  4041.  
  4042.     
  4043.     def nodeGetBase(self, cur):
  4044.         if cur is None:
  4045.             cur__o = None
  4046.         else:
  4047.             cur__o = cur._o
  4048.         ret = libxml2mod.xmlNodeGetBase(self._o, cur__o)
  4049.         return ret
  4050.  
  4051.     
  4052.     def nodeListGetRawString(self, list, inLine):
  4053.         if list is None:
  4054.             list__o = None
  4055.         else:
  4056.             list__o = list._o
  4057.         ret = libxml2mod.xmlNodeListGetRawString(self._o, list__o, inLine)
  4058.         return ret
  4059.  
  4060.     
  4061.     def nodeListGetString(self, list, inLine):
  4062.         if list is None:
  4063.             list__o = None
  4064.         else:
  4065.             list__o = list._o
  4066.         ret = libxml2mod.xmlNodeListGetString(self._o, list__o, inLine)
  4067.         return ret
  4068.  
  4069.     
  4070.     def reconciliateNs(self, tree):
  4071.         if tree is None:
  4072.             tree__o = None
  4073.         else:
  4074.             tree__o = tree._o
  4075.         ret = libxml2mod.xmlReconciliateNs(self._o, tree__o)
  4076.         return ret
  4077.  
  4078.     
  4079.     def saveFile(self, filename):
  4080.         ret = libxml2mod.xmlSaveFile(filename, self._o)
  4081.         return ret
  4082.  
  4083.     
  4084.     def saveFileEnc(self, filename, encoding):
  4085.         ret = libxml2mod.xmlSaveFileEnc(filename, self._o, encoding)
  4086.         return ret
  4087.  
  4088.     
  4089.     def saveFileTo(self, buf, encoding):
  4090.         if buf is None:
  4091.             buf__o = None
  4092.         else:
  4093.             buf__o = buf._o
  4094.         ret = libxml2mod.xmlSaveFileTo(buf__o, self._o, encoding)
  4095.         return ret
  4096.  
  4097.     
  4098.     def saveFormatFile(self, filename, format):
  4099.         ret = libxml2mod.xmlSaveFormatFile(filename, self._o, format)
  4100.         return ret
  4101.  
  4102.     
  4103.     def saveFormatFileEnc(self, filename, encoding, format):
  4104.         ret = libxml2mod.xmlSaveFormatFileEnc(filename, self._o, encoding, format)
  4105.         return ret
  4106.  
  4107.     
  4108.     def saveFormatFileTo(self, buf, encoding, format):
  4109.         if buf is None:
  4110.             buf__o = None
  4111.         else:
  4112.             buf__o = buf._o
  4113.         ret = libxml2mod.xmlSaveFormatFileTo(buf__o, self._o, encoding, format)
  4114.         return ret
  4115.  
  4116.     
  4117.     def searchNs(self, node, nameSpace):
  4118.         if node is None:
  4119.             node__o = None
  4120.         else:
  4121.             node__o = node._o
  4122.         ret = libxml2mod.xmlSearchNs(self._o, node__o, nameSpace)
  4123.         if ret is None:
  4124.             raise treeError('xmlSearchNs() failed')
  4125.         ret is None
  4126.         _xmlDoc__tmp = xmlNs(_obj = ret)
  4127.         return _xmlDoc__tmp
  4128.  
  4129.     
  4130.     def searchNsByHref(self, node, href):
  4131.         if node is None:
  4132.             node__o = None
  4133.         else:
  4134.             node__o = node._o
  4135.         ret = libxml2mod.xmlSearchNsByHref(self._o, node__o, href)
  4136.         if ret is None:
  4137.             raise treeError('xmlSearchNsByHref() failed')
  4138.         ret is None
  4139.         _xmlDoc__tmp = xmlNs(_obj = ret)
  4140.         return _xmlDoc__tmp
  4141.  
  4142.     
  4143.     def setDocCompressMode(self, mode):
  4144.         libxml2mod.xmlSetDocCompressMode(self._o, mode)
  4145.  
  4146.     
  4147.     def setListDoc(self, list):
  4148.         if list is None:
  4149.             list__o = None
  4150.         else:
  4151.             list__o = list._o
  4152.         libxml2mod.xmlSetListDoc(list__o, self._o)
  4153.  
  4154.     
  4155.     def setRootElement(self, root):
  4156.         if root is None:
  4157.             root__o = None
  4158.         else:
  4159.             root__o = root._o
  4160.         ret = libxml2mod.xmlDocSetRootElement(self._o, root__o)
  4161.         if ret is None:
  4162.             return None
  4163.         _xmlDoc__tmp = xmlNode(_obj = ret)
  4164.         return _xmlDoc__tmp
  4165.  
  4166.     
  4167.     def setTreeDoc(self, tree):
  4168.         if tree is None:
  4169.             tree__o = None
  4170.         else:
  4171.             tree__o = tree._o
  4172.         libxml2mod.xmlSetTreeDoc(tree__o, self._o)
  4173.  
  4174.     
  4175.     def stringGetNodeList(self, value):
  4176.         ret = libxml2mod.xmlStringGetNodeList(self._o, value)
  4177.         if ret is None:
  4178.             raise treeError('xmlStringGetNodeList() failed')
  4179.         ret is None
  4180.         _xmlDoc__tmp = xmlNode(_obj = ret)
  4181.         return _xmlDoc__tmp
  4182.  
  4183.     
  4184.     def stringLenGetNodeList(self, value, len):
  4185.         ret = libxml2mod.xmlStringLenGetNodeList(self._o, value, len)
  4186.         if ret is None:
  4187.             raise treeError('xmlStringLenGetNodeList() failed')
  4188.         ret is None
  4189.         _xmlDoc__tmp = xmlNode(_obj = ret)
  4190.         return _xmlDoc__tmp
  4191.  
  4192.     
  4193.     def ID(self, ID):
  4194.         ret = libxml2mod.xmlGetID(self._o, ID)
  4195.         if ret is None:
  4196.             raise treeError('xmlGetID() failed')
  4197.         ret is None
  4198.         _xmlDoc__tmp = xmlAttr(_obj = ret)
  4199.         return _xmlDoc__tmp
  4200.  
  4201.     
  4202.     def isID(self, elem, attr):
  4203.         if elem is None:
  4204.             elem__o = None
  4205.         else:
  4206.             elem__o = elem._o
  4207.         if attr is None:
  4208.             attr__o = None
  4209.         else:
  4210.             attr__o = attr._o
  4211.         ret = libxml2mod.xmlIsID(self._o, elem__o, attr__o)
  4212.         return ret
  4213.  
  4214.     
  4215.     def isMixedElement(self, name):
  4216.         ret = libxml2mod.xmlIsMixedElement(self._o, name)
  4217.         return ret
  4218.  
  4219.     
  4220.     def isRef(self, elem, attr):
  4221.         if elem is None:
  4222.             elem__o = None
  4223.         else:
  4224.             elem__o = elem._o
  4225.         if attr is None:
  4226.             attr__o = None
  4227.         else:
  4228.             attr__o = attr._o
  4229.         ret = libxml2mod.xmlIsRef(self._o, elem__o, attr__o)
  4230.         return ret
  4231.  
  4232.     
  4233.     def removeID(self, attr):
  4234.         if attr is None:
  4235.             attr__o = None
  4236.         else:
  4237.             attr__o = attr._o
  4238.         ret = libxml2mod.xmlRemoveID(self._o, attr__o)
  4239.         return ret
  4240.  
  4241.     
  4242.     def removeRef(self, attr):
  4243.         if attr is None:
  4244.             attr__o = None
  4245.         else:
  4246.             attr__o = attr._o
  4247.         ret = libxml2mod.xmlRemoveRef(self._o, attr__o)
  4248.         return ret
  4249.  
  4250.     
  4251.     def validCtxtNormalizeAttributeValue(self, ctxt, elem, name, value):
  4252.         if ctxt is None:
  4253.             ctxt__o = None
  4254.         else:
  4255.             ctxt__o = ctxt._o
  4256.         if elem is None:
  4257.             elem__o = None
  4258.         else:
  4259.             elem__o = elem._o
  4260.         ret = libxml2mod.xmlValidCtxtNormalizeAttributeValue(ctxt__o, self._o, elem__o, name, value)
  4261.         return ret
  4262.  
  4263.     
  4264.     def validNormalizeAttributeValue(self, elem, name, value):
  4265.         if elem is None:
  4266.             elem__o = None
  4267.         else:
  4268.             elem__o = elem._o
  4269.         ret = libxml2mod.xmlValidNormalizeAttributeValue(self._o, elem__o, name, value)
  4270.         return ret
  4271.  
  4272.     
  4273.     def validateDocument(self, ctxt):
  4274.         if ctxt is None:
  4275.             ctxt__o = None
  4276.         else:
  4277.             ctxt__o = ctxt._o
  4278.         ret = libxml2mod.xmlValidateDocument(ctxt__o, self._o)
  4279.         return ret
  4280.  
  4281.     
  4282.     def validateDocumentFinal(self, ctxt):
  4283.         if ctxt is None:
  4284.             ctxt__o = None
  4285.         else:
  4286.             ctxt__o = ctxt._o
  4287.         ret = libxml2mod.xmlValidateDocumentFinal(ctxt__o, self._o)
  4288.         return ret
  4289.  
  4290.     
  4291.     def validateDtd(self, ctxt, dtd):
  4292.         if ctxt is None:
  4293.             ctxt__o = None
  4294.         else:
  4295.             ctxt__o = ctxt._o
  4296.         if dtd is None:
  4297.             dtd__o = None
  4298.         else:
  4299.             dtd__o = dtd._o
  4300.         ret = libxml2mod.xmlValidateDtd(ctxt__o, self._o, dtd__o)
  4301.         return ret
  4302.  
  4303.     
  4304.     def validateDtdFinal(self, ctxt):
  4305.         if ctxt is None:
  4306.             ctxt__o = None
  4307.         else:
  4308.             ctxt__o = ctxt._o
  4309.         ret = libxml2mod.xmlValidateDtdFinal(ctxt__o, self._o)
  4310.         return ret
  4311.  
  4312.     
  4313.     def validateElement(self, ctxt, elem):
  4314.         if ctxt is None:
  4315.             ctxt__o = None
  4316.         else:
  4317.             ctxt__o = ctxt._o
  4318.         if elem is None:
  4319.             elem__o = None
  4320.         else:
  4321.             elem__o = elem._o
  4322.         ret = libxml2mod.xmlValidateElement(ctxt__o, self._o, elem__o)
  4323.         return ret
  4324.  
  4325.     
  4326.     def validateNotationUse(self, ctxt, notationName):
  4327.         if ctxt is None:
  4328.             ctxt__o = None
  4329.         else:
  4330.             ctxt__o = ctxt._o
  4331.         ret = libxml2mod.xmlValidateNotationUse(ctxt__o, self._o, notationName)
  4332.         return ret
  4333.  
  4334.     
  4335.     def validateOneAttribute(self, ctxt, elem, attr, value):
  4336.         if ctxt is None:
  4337.             ctxt__o = None
  4338.         else:
  4339.             ctxt__o = ctxt._o
  4340.         if elem is None:
  4341.             elem__o = None
  4342.         else:
  4343.             elem__o = elem._o
  4344.         if attr is None:
  4345.             attr__o = None
  4346.         else:
  4347.             attr__o = attr._o
  4348.         ret = libxml2mod.xmlValidateOneAttribute(ctxt__o, self._o, elem__o, attr__o, value)
  4349.         return ret
  4350.  
  4351.     
  4352.     def validateOneElement(self, ctxt, elem):
  4353.         if ctxt is None:
  4354.             ctxt__o = None
  4355.         else:
  4356.             ctxt__o = ctxt._o
  4357.         if elem is None:
  4358.             elem__o = None
  4359.         else:
  4360.             elem__o = elem._o
  4361.         ret = libxml2mod.xmlValidateOneElement(ctxt__o, self._o, elem__o)
  4362.         return ret
  4363.  
  4364.     
  4365.     def validateOneNamespace(self, ctxt, elem, prefix, ns, value):
  4366.         if ctxt is None:
  4367.             ctxt__o = None
  4368.         else:
  4369.             ctxt__o = ctxt._o
  4370.         if elem is None:
  4371.             elem__o = None
  4372.         else:
  4373.             elem__o = elem._o
  4374.         if ns is None:
  4375.             ns__o = None
  4376.         else:
  4377.             ns__o = ns._o
  4378.         ret = libxml2mod.xmlValidateOneNamespace(ctxt__o, self._o, elem__o, prefix, ns__o, value)
  4379.         return ret
  4380.  
  4381.     
  4382.     def validatePopElement(self, ctxt, elem, qname):
  4383.         if ctxt is None:
  4384.             ctxt__o = None
  4385.         else:
  4386.             ctxt__o = ctxt._o
  4387.         if elem is None:
  4388.             elem__o = None
  4389.         else:
  4390.             elem__o = elem._o
  4391.         ret = libxml2mod.xmlValidatePopElement(ctxt__o, self._o, elem__o, qname)
  4392.         return ret
  4393.  
  4394.     
  4395.     def validatePushElement(self, ctxt, elem, qname):
  4396.         if ctxt is None:
  4397.             ctxt__o = None
  4398.         else:
  4399.             ctxt__o = ctxt._o
  4400.         if elem is None:
  4401.             elem__o = None
  4402.         else:
  4403.             elem__o = elem._o
  4404.         ret = libxml2mod.xmlValidatePushElement(ctxt__o, self._o, elem__o, qname)
  4405.         return ret
  4406.  
  4407.     
  4408.     def validateRoot(self, ctxt):
  4409.         if ctxt is None:
  4410.             ctxt__o = None
  4411.         else:
  4412.             ctxt__o = ctxt._o
  4413.         ret = libxml2mod.xmlValidateRoot(ctxt__o, self._o)
  4414.         return ret
  4415.  
  4416.     
  4417.     def xincludeProcess(self):
  4418.         ret = libxml2mod.xmlXIncludeProcess(self._o)
  4419.         return ret
  4420.  
  4421.     
  4422.     def xincludeProcessFlags(self, flags):
  4423.         ret = libxml2mod.xmlXIncludeProcessFlags(self._o, flags)
  4424.         return ret
  4425.  
  4426.     
  4427.     def NewWalker(self, reader):
  4428.         if reader is None:
  4429.             reader__o = None
  4430.         else:
  4431.             reader__o = reader._o
  4432.         ret = libxml2mod.xmlReaderNewWalker(reader__o, self._o)
  4433.         return ret
  4434.  
  4435.     
  4436.     def readerWalker(self):
  4437.         ret = libxml2mod.xmlReaderWalker(self._o)
  4438.         if ret is None:
  4439.             raise treeError('xmlReaderWalker() failed')
  4440.         ret is None
  4441.         _xmlDoc__tmp = xmlTextReader(_obj = ret)
  4442.         return _xmlDoc__tmp
  4443.  
  4444.     
  4445.     def schemaNewDocParserCtxt(self):
  4446.         ret = libxml2mod.xmlSchemaNewDocParserCtxt(self._o)
  4447.         if ret is None:
  4448.             raise parserError('xmlSchemaNewDocParserCtxt() failed')
  4449.         ret is None
  4450.         _xmlDoc__tmp = SchemaParserCtxt(_obj = ret)
  4451.         return _xmlDoc__tmp
  4452.  
  4453.     
  4454.     def schemaValidateDoc(self, ctxt):
  4455.         if ctxt is None:
  4456.             ctxt__o = None
  4457.         else:
  4458.             ctxt__o = ctxt._o
  4459.         ret = libxml2mod.xmlSchemaValidateDoc(ctxt__o, self._o)
  4460.         return ret
  4461.  
  4462.     
  4463.     def xpathNewContext(self):
  4464.         ret = libxml2mod.xmlXPathNewContext(self._o)
  4465.         if ret is None:
  4466.             raise xpathError('xmlXPathNewContext() failed')
  4467.         ret is None
  4468.         _xmlDoc__tmp = xpathContext(_obj = ret)
  4469.         return _xmlDoc__tmp
  4470.  
  4471.     
  4472.     def xpathOrderDocElems(self):
  4473.         ret = libxml2mod.xmlXPathOrderDocElems(self._o)
  4474.         return ret
  4475.  
  4476.     
  4477.     def xpointerNewContext(self, here, origin):
  4478.         if here is None:
  4479.             here__o = None
  4480.         else:
  4481.             here__o = here._o
  4482.         if origin is None:
  4483.             origin__o = None
  4484.         else:
  4485.             origin__o = origin._o
  4486.         ret = libxml2mod.xmlXPtrNewContext(self._o, here__o, origin__o)
  4487.         if ret is None:
  4488.             raise treeError('xmlXPtrNewContext() failed')
  4489.         ret is None
  4490.         _xmlDoc__tmp = xpathContext(_obj = ret)
  4491.         return _xmlDoc__tmp
  4492.  
  4493.  
  4494.  
  4495. class xpathContext:
  4496.     
  4497.     def __init__(self, _obj = None):
  4498.         if _obj != None:
  4499.             self._o = _obj
  4500.             return None
  4501.         self._o = None
  4502.  
  4503.     
  4504.     def contextDoc(self):
  4505.         ret = libxml2mod.xmlXPathGetContextDoc(self._o)
  4506.         if ret is None:
  4507.             raise xpathError('xmlXPathGetContextDoc() failed')
  4508.         ret is None
  4509.         _xpathContext__tmp = xmlDoc(_obj = ret)
  4510.         return _xpathContext__tmp
  4511.  
  4512.     
  4513.     def contextNode(self):
  4514.         ret = libxml2mod.xmlXPathGetContextNode(self._o)
  4515.         if ret is None:
  4516.             raise xpathError('xmlXPathGetContextNode() failed')
  4517.         ret is None
  4518.         _xpathContext__tmp = xmlNode(_obj = ret)
  4519.         return _xpathContext__tmp
  4520.  
  4521.     
  4522.     def contextPosition(self):
  4523.         ret = libxml2mod.xmlXPathGetContextPosition(self._o)
  4524.         return ret
  4525.  
  4526.     
  4527.     def contextSize(self):
  4528.         ret = libxml2mod.xmlXPathGetContextSize(self._o)
  4529.         return ret
  4530.  
  4531.     
  4532.     def function(self):
  4533.         ret = libxml2mod.xmlXPathGetFunction(self._o)
  4534.         return ret
  4535.  
  4536.     
  4537.     def functionURI(self):
  4538.         ret = libxml2mod.xmlXPathGetFunctionURI(self._o)
  4539.         return ret
  4540.  
  4541.     
  4542.     def setContextDoc(self, doc):
  4543.         if doc is None:
  4544.             doc__o = None
  4545.         else:
  4546.             doc__o = doc._o
  4547.         libxml2mod.xmlXPathSetContextDoc(self._o, doc__o)
  4548.  
  4549.     
  4550.     def setContextNode(self, node):
  4551.         if node is None:
  4552.             node__o = None
  4553.         else:
  4554.             node__o = node._o
  4555.         libxml2mod.xmlXPathSetContextNode(self._o, node__o)
  4556.  
  4557.     
  4558.     def registerXPathFunction(self, name, ns_uri, f):
  4559.         ret = libxml2mod.xmlRegisterXPathFunction(self._o, name, ns_uri, f)
  4560.         return ret
  4561.  
  4562.     
  4563.     def xpathContextSetCache(self, active, value, options):
  4564.         ret = libxml2mod.xmlXPathContextSetCache(self._o, active, value, options)
  4565.         return ret
  4566.  
  4567.     
  4568.     def xpathEval(self, str):
  4569.         ret = libxml2mod.xmlXPathEval(str, self._o)
  4570.         if ret is None:
  4571.             raise xpathError('xmlXPathEval() failed')
  4572.         ret is None
  4573.         return xpathObjectRet(ret)
  4574.  
  4575.     
  4576.     def xpathEvalExpression(self, str):
  4577.         ret = libxml2mod.xmlXPathEvalExpression(str, self._o)
  4578.         if ret is None:
  4579.             raise xpathError('xmlXPathEvalExpression() failed')
  4580.         ret is None
  4581.         return xpathObjectRet(ret)
  4582.  
  4583.     
  4584.     def xpathFreeContext(self):
  4585.         libxml2mod.xmlXPathFreeContext(self._o)
  4586.  
  4587.     
  4588.     def xpathNewParserContext(self, str):
  4589.         ret = libxml2mod.xmlXPathNewParserContext(str, self._o)
  4590.         if ret is None:
  4591.             raise xpathError('xmlXPathNewParserContext() failed')
  4592.         ret is None
  4593.         _xpathContext__tmp = xpathParserContext(_obj = ret)
  4594.         return _xpathContext__tmp
  4595.  
  4596.     
  4597.     def xpathNsLookup(self, prefix):
  4598.         ret = libxml2mod.xmlXPathNsLookup(self._o, prefix)
  4599.         return ret
  4600.  
  4601.     
  4602.     def xpathRegisterAllFunctions(self):
  4603.         libxml2mod.xmlXPathRegisterAllFunctions(self._o)
  4604.  
  4605.     
  4606.     def xpathRegisterNs(self, prefix, ns_uri):
  4607.         ret = libxml2mod.xmlXPathRegisterNs(self._o, prefix, ns_uri)
  4608.         return ret
  4609.  
  4610.     
  4611.     def xpathRegisteredFuncsCleanup(self):
  4612.         libxml2mod.xmlXPathRegisteredFuncsCleanup(self._o)
  4613.  
  4614.     
  4615.     def xpathRegisteredNsCleanup(self):
  4616.         libxml2mod.xmlXPathRegisteredNsCleanup(self._o)
  4617.  
  4618.     
  4619.     def xpathRegisteredVariablesCleanup(self):
  4620.         libxml2mod.xmlXPathRegisteredVariablesCleanup(self._o)
  4621.  
  4622.     
  4623.     def xpathVariableLookup(self, name):
  4624.         ret = libxml2mod.xmlXPathVariableLookup(self._o, name)
  4625.         if ret is None:
  4626.             raise xpathError('xmlXPathVariableLookup() failed')
  4627.         ret is None
  4628.         return xpathObjectRet(ret)
  4629.  
  4630.     
  4631.     def xpathVariableLookupNS(self, name, ns_uri):
  4632.         ret = libxml2mod.xmlXPathVariableLookupNS(self._o, name, ns_uri)
  4633.         if ret is None:
  4634.             raise xpathError('xmlXPathVariableLookupNS() failed')
  4635.         ret is None
  4636.         return xpathObjectRet(ret)
  4637.  
  4638.     
  4639.     def xpointerEval(self, str):
  4640.         ret = libxml2mod.xmlXPtrEval(str, self._o)
  4641.         if ret is None:
  4642.             raise treeError('xmlXPtrEval() failed')
  4643.         ret is None
  4644.         return xpathObjectRet(ret)
  4645.  
  4646.  
  4647.  
  4648. class xmlAttribute(xmlNode):
  4649.     
  4650.     def __init__(self, _obj = None):
  4651.         if type(_obj).__name__ != 'PyCObject':
  4652.             raise TypeError, 'xmlAttribute needs a PyCObject argument'
  4653.         type(_obj).__name__ != 'PyCObject'
  4654.         self._o = _obj
  4655.         xmlNode.__init__(self, _obj = _obj)
  4656.  
  4657.     
  4658.     def __repr__(self):
  4659.         return '<xmlAttribute object at 0x%x>' % (long(pos_id(self)),)
  4660.  
  4661.  
  4662.  
  4663. class ValidCtxt(ValidCtxtCore):
  4664.     
  4665.     def __init__(self, _obj = None):
  4666.         self._o = _obj
  4667.         ValidCtxtCore.__init__(self, _obj = _obj)
  4668.  
  4669.     
  4670.     def __del__(self):
  4671.         if self._o != None:
  4672.             libxml2mod.xmlFreeValidCtxt(self._o)
  4673.         
  4674.         self._o = None
  4675.  
  4676.     
  4677.     def validCtxtNormalizeAttributeValue(self, doc, elem, name, value):
  4678.         if doc is None:
  4679.             doc__o = None
  4680.         else:
  4681.             doc__o = doc._o
  4682.         if elem is None:
  4683.             elem__o = None
  4684.         else:
  4685.             elem__o = elem._o
  4686.         ret = libxml2mod.xmlValidCtxtNormalizeAttributeValue(self._o, doc__o, elem__o, name, value)
  4687.         return ret
  4688.  
  4689.     
  4690.     def validateDocument(self, doc):
  4691.         if doc is None:
  4692.             doc__o = None
  4693.         else:
  4694.             doc__o = doc._o
  4695.         ret = libxml2mod.xmlValidateDocument(self._o, doc__o)
  4696.         return ret
  4697.  
  4698.     
  4699.     def validateDocumentFinal(self, doc):
  4700.         if doc is None:
  4701.             doc__o = None
  4702.         else:
  4703.             doc__o = doc._o
  4704.         ret = libxml2mod.xmlValidateDocumentFinal(self._o, doc__o)
  4705.         return ret
  4706.  
  4707.     
  4708.     def validateDtd(self, doc, dtd):
  4709.         if doc is None:
  4710.             doc__o = None
  4711.         else:
  4712.             doc__o = doc._o
  4713.         if dtd is None:
  4714.             dtd__o = None
  4715.         else:
  4716.             dtd__o = dtd._o
  4717.         ret = libxml2mod.xmlValidateDtd(self._o, doc__o, dtd__o)
  4718.         return ret
  4719.  
  4720.     
  4721.     def validateDtdFinal(self, doc):
  4722.         if doc is None:
  4723.             doc__o = None
  4724.         else:
  4725.             doc__o = doc._o
  4726.         ret = libxml2mod.xmlValidateDtdFinal(self._o, doc__o)
  4727.         return ret
  4728.  
  4729.     
  4730.     def validateElement(self, doc, elem):
  4731.         if doc is None:
  4732.             doc__o = None
  4733.         else:
  4734.             doc__o = doc._o
  4735.         if elem is None:
  4736.             elem__o = None
  4737.         else:
  4738.             elem__o = elem._o
  4739.         ret = libxml2mod.xmlValidateElement(self._o, doc__o, elem__o)
  4740.         return ret
  4741.  
  4742.     
  4743.     def validateNotationUse(self, doc, notationName):
  4744.         if doc is None:
  4745.             doc__o = None
  4746.         else:
  4747.             doc__o = doc._o
  4748.         ret = libxml2mod.xmlValidateNotationUse(self._o, doc__o, notationName)
  4749.         return ret
  4750.  
  4751.     
  4752.     def validateOneAttribute(self, doc, elem, attr, value):
  4753.         if doc is None:
  4754.             doc__o = None
  4755.         else:
  4756.             doc__o = doc._o
  4757.         if elem is None:
  4758.             elem__o = None
  4759.         else:
  4760.             elem__o = elem._o
  4761.         if attr is None:
  4762.             attr__o = None
  4763.         else:
  4764.             attr__o = attr._o
  4765.         ret = libxml2mod.xmlValidateOneAttribute(self._o, doc__o, elem__o, attr__o, value)
  4766.         return ret
  4767.  
  4768.     
  4769.     def validateOneElement(self, doc, elem):
  4770.         if doc is None:
  4771.             doc__o = None
  4772.         else:
  4773.             doc__o = doc._o
  4774.         if elem is None:
  4775.             elem__o = None
  4776.         else:
  4777.             elem__o = elem._o
  4778.         ret = libxml2mod.xmlValidateOneElement(self._o, doc__o, elem__o)
  4779.         return ret
  4780.  
  4781.     
  4782.     def validateOneNamespace(self, doc, elem, prefix, ns, value):
  4783.         if doc is None:
  4784.             doc__o = None
  4785.         else:
  4786.             doc__o = doc._o
  4787.         if elem is None:
  4788.             elem__o = None
  4789.         else:
  4790.             elem__o = elem._o
  4791.         if ns is None:
  4792.             ns__o = None
  4793.         else:
  4794.             ns__o = ns._o
  4795.         ret = libxml2mod.xmlValidateOneNamespace(self._o, doc__o, elem__o, prefix, ns__o, value)
  4796.         return ret
  4797.  
  4798.     
  4799.     def validatePopElement(self, doc, elem, qname):
  4800.         if doc is None:
  4801.             doc__o = None
  4802.         else:
  4803.             doc__o = doc._o
  4804.         if elem is None:
  4805.             elem__o = None
  4806.         else:
  4807.             elem__o = elem._o
  4808.         ret = libxml2mod.xmlValidatePopElement(self._o, doc__o, elem__o, qname)
  4809.         return ret
  4810.  
  4811.     
  4812.     def validatePushCData(self, data, len):
  4813.         ret = libxml2mod.xmlValidatePushCData(self._o, data, len)
  4814.         return ret
  4815.  
  4816.     
  4817.     def validatePushElement(self, doc, elem, qname):
  4818.         if doc is None:
  4819.             doc__o = None
  4820.         else:
  4821.             doc__o = doc._o
  4822.         if elem is None:
  4823.             elem__o = None
  4824.         else:
  4825.             elem__o = elem._o
  4826.         ret = libxml2mod.xmlValidatePushElement(self._o, doc__o, elem__o, qname)
  4827.         return ret
  4828.  
  4829.     
  4830.     def validateRoot(self, doc):
  4831.         if doc is None:
  4832.             doc__o = None
  4833.         else:
  4834.             doc__o = doc._o
  4835.         ret = libxml2mod.xmlValidateRoot(self._o, doc__o)
  4836.         return ret
  4837.  
  4838.  
  4839.  
  4840. class xmlElement(xmlNode):
  4841.     
  4842.     def __init__(self, _obj = None):
  4843.         if type(_obj).__name__ != 'PyCObject':
  4844.             raise TypeError, 'xmlElement needs a PyCObject argument'
  4845.         type(_obj).__name__ != 'PyCObject'
  4846.         self._o = _obj
  4847.         xmlNode.__init__(self, _obj = _obj)
  4848.  
  4849.     
  4850.     def __repr__(self):
  4851.         return '<xmlElement object at 0x%x>' % (long(pos_id(self)),)
  4852.  
  4853.  
  4854.  
  4855. class xmlAttr(xmlNode):
  4856.     
  4857.     def __init__(self, _obj = None):
  4858.         if type(_obj).__name__ != 'PyCObject':
  4859.             raise TypeError, 'xmlAttr needs a PyCObject argument'
  4860.         type(_obj).__name__ != 'PyCObject'
  4861.         self._o = _obj
  4862.         xmlNode.__init__(self, _obj = _obj)
  4863.  
  4864.     
  4865.     def __repr__(self):
  4866.         return '<xmlAttr object at 0x%x>' % (long(pos_id(self)),)
  4867.  
  4868.     
  4869.     def debugDumpAttr(self, output, depth):
  4870.         libxml2mod.xmlDebugDumpAttr(output, self._o, depth)
  4871.  
  4872.     
  4873.     def debugDumpAttrList(self, output, depth):
  4874.         libxml2mod.xmlDebugDumpAttrList(output, self._o, depth)
  4875.  
  4876.     
  4877.     def copyProp(self, target):
  4878.         if target is None:
  4879.             target__o = None
  4880.         else:
  4881.             target__o = target._o
  4882.         ret = libxml2mod.xmlCopyProp(target__o, self._o)
  4883.         if ret is None:
  4884.             raise treeError('xmlCopyProp() failed')
  4885.         ret is None
  4886.         _xmlAttr__tmp = xmlAttr(_obj = ret)
  4887.         return _xmlAttr__tmp
  4888.  
  4889.     
  4890.     def copyPropList(self, target):
  4891.         if target is None:
  4892.             target__o = None
  4893.         else:
  4894.             target__o = target._o
  4895.         ret = libxml2mod.xmlCopyPropList(target__o, self._o)
  4896.         if ret is None:
  4897.             raise treeError('xmlCopyPropList() failed')
  4898.         ret is None
  4899.         _xmlAttr__tmp = xmlAttr(_obj = ret)
  4900.         return _xmlAttr__tmp
  4901.  
  4902.     
  4903.     def freeProp(self):
  4904.         libxml2mod.xmlFreeProp(self._o)
  4905.  
  4906.     
  4907.     def freePropList(self):
  4908.         libxml2mod.xmlFreePropList(self._o)
  4909.  
  4910.     
  4911.     def removeProp(self):
  4912.         ret = libxml2mod.xmlRemoveProp(self._o)
  4913.         return ret
  4914.  
  4915.     
  4916.     def removeID(self, doc):
  4917.         if doc is None:
  4918.             doc__o = None
  4919.         else:
  4920.             doc__o = doc._o
  4921.         ret = libxml2mod.xmlRemoveID(doc__o, self._o)
  4922.         return ret
  4923.  
  4924.     
  4925.     def removeRef(self, doc):
  4926.         if doc is None:
  4927.             doc__o = None
  4928.         else:
  4929.             doc__o = doc._o
  4930.         ret = libxml2mod.xmlRemoveRef(doc__o, self._o)
  4931.         return ret
  4932.  
  4933.  
  4934.  
  4935. class xmlTextReader(xmlTextReaderCore):
  4936.     
  4937.     def __init__(self, _obj = None):
  4938.         self.input = None
  4939.         self._o = _obj
  4940.         xmlTextReaderCore.__init__(self, _obj = _obj)
  4941.  
  4942.     
  4943.     def __del__(self):
  4944.         if self._o != None:
  4945.             libxml2mod.xmlFreeTextReader(self._o)
  4946.         
  4947.         self._o = None
  4948.  
  4949.     
  4950.     def AttributeCount(self):
  4951.         ret = libxml2mod.xmlTextReaderAttributeCount(self._o)
  4952.         return ret
  4953.  
  4954.     
  4955.     def BaseUri(self):
  4956.         ret = libxml2mod.xmlTextReaderConstBaseUri(self._o)
  4957.         return ret
  4958.  
  4959.     
  4960.     def ByteConsumed(self):
  4961.         ret = libxml2mod.xmlTextReaderByteConsumed(self._o)
  4962.         return ret
  4963.  
  4964.     
  4965.     def Close(self):
  4966.         ret = libxml2mod.xmlTextReaderClose(self._o)
  4967.         return ret
  4968.  
  4969.     
  4970.     def CurrentDoc(self):
  4971.         ret = libxml2mod.xmlTextReaderCurrentDoc(self._o)
  4972.         if ret is None:
  4973.             raise treeError('xmlTextReaderCurrentDoc() failed')
  4974.         ret is None
  4975.         _xmlTextReader__tmp = xmlDoc(_obj = ret)
  4976.         return _xmlTextReader__tmp
  4977.  
  4978.     
  4979.     def CurrentNode(self):
  4980.         ret = libxml2mod.xmlTextReaderCurrentNode(self._o)
  4981.         if ret is None:
  4982.             raise treeError('xmlTextReaderCurrentNode() failed')
  4983.         ret is None
  4984.         _xmlTextReader__tmp = xmlNode(_obj = ret)
  4985.         return _xmlTextReader__tmp
  4986.  
  4987.     
  4988.     def Depth(self):
  4989.         ret = libxml2mod.xmlTextReaderDepth(self._o)
  4990.         return ret
  4991.  
  4992.     
  4993.     def Encoding(self):
  4994.         ret = libxml2mod.xmlTextReaderConstEncoding(self._o)
  4995.         return ret
  4996.  
  4997.     
  4998.     def Expand(self):
  4999.         ret = libxml2mod.xmlTextReaderExpand(self._o)
  5000.         if ret is None:
  5001.             raise treeError('xmlTextReaderExpand() failed')
  5002.         ret is None
  5003.         _xmlTextReader__tmp = xmlNode(_obj = ret)
  5004.         return _xmlTextReader__tmp
  5005.  
  5006.     
  5007.     def GetAttribute(self, name):
  5008.         ret = libxml2mod.xmlTextReaderGetAttribute(self._o, name)
  5009.         return ret
  5010.  
  5011.     
  5012.     def GetAttributeNo(self, no):
  5013.         ret = libxml2mod.xmlTextReaderGetAttributeNo(self._o, no)
  5014.         return ret
  5015.  
  5016.     
  5017.     def GetAttributeNs(self, localName, namespaceURI):
  5018.         ret = libxml2mod.xmlTextReaderGetAttributeNs(self._o, localName, namespaceURI)
  5019.         return ret
  5020.  
  5021.     
  5022.     def GetParserColumnNumber(self):
  5023.         ret = libxml2mod.xmlTextReaderGetParserColumnNumber(self._o)
  5024.         return ret
  5025.  
  5026.     
  5027.     def GetParserLineNumber(self):
  5028.         ret = libxml2mod.xmlTextReaderGetParserLineNumber(self._o)
  5029.         return ret
  5030.  
  5031.     
  5032.     def GetParserProp(self, prop):
  5033.         ret = libxml2mod.xmlTextReaderGetParserProp(self._o, prop)
  5034.         return ret
  5035.  
  5036.     
  5037.     def GetRemainder(self):
  5038.         ret = libxml2mod.xmlTextReaderGetRemainder(self._o)
  5039.         if ret is None:
  5040.             raise treeError('xmlTextReaderGetRemainder() failed')
  5041.         ret is None
  5042.         _xmlTextReader__tmp = inputBuffer(_obj = ret)
  5043.         return _xmlTextReader__tmp
  5044.  
  5045.     
  5046.     def HasAttributes(self):
  5047.         ret = libxml2mod.xmlTextReaderHasAttributes(self._o)
  5048.         return ret
  5049.  
  5050.     
  5051.     def HasValue(self):
  5052.         ret = libxml2mod.xmlTextReaderHasValue(self._o)
  5053.         return ret
  5054.  
  5055.     
  5056.     def IsDefault(self):
  5057.         ret = libxml2mod.xmlTextReaderIsDefault(self._o)
  5058.         return ret
  5059.  
  5060.     
  5061.     def IsEmptyElement(self):
  5062.         ret = libxml2mod.xmlTextReaderIsEmptyElement(self._o)
  5063.         return ret
  5064.  
  5065.     
  5066.     def IsNamespaceDecl(self):
  5067.         ret = libxml2mod.xmlTextReaderIsNamespaceDecl(self._o)
  5068.         return ret
  5069.  
  5070.     
  5071.     def IsValid(self):
  5072.         ret = libxml2mod.xmlTextReaderIsValid(self._o)
  5073.         return ret
  5074.  
  5075.     
  5076.     def LocalName(self):
  5077.         ret = libxml2mod.xmlTextReaderConstLocalName(self._o)
  5078.         return ret
  5079.  
  5080.     
  5081.     def LookupNamespace(self, prefix):
  5082.         ret = libxml2mod.xmlTextReaderLookupNamespace(self._o, prefix)
  5083.         return ret
  5084.  
  5085.     
  5086.     def MoveToAttribute(self, name):
  5087.         ret = libxml2mod.xmlTextReaderMoveToAttribute(self._o, name)
  5088.         return ret
  5089.  
  5090.     
  5091.     def MoveToAttributeNo(self, no):
  5092.         ret = libxml2mod.xmlTextReaderMoveToAttributeNo(self._o, no)
  5093.         return ret
  5094.  
  5095.     
  5096.     def MoveToAttributeNs(self, localName, namespaceURI):
  5097.         ret = libxml2mod.xmlTextReaderMoveToAttributeNs(self._o, localName, namespaceURI)
  5098.         return ret
  5099.  
  5100.     
  5101.     def MoveToElement(self):
  5102.         ret = libxml2mod.xmlTextReaderMoveToElement(self._o)
  5103.         return ret
  5104.  
  5105.     
  5106.     def MoveToFirstAttribute(self):
  5107.         ret = libxml2mod.xmlTextReaderMoveToFirstAttribute(self._o)
  5108.         return ret
  5109.  
  5110.     
  5111.     def MoveToNextAttribute(self):
  5112.         ret = libxml2mod.xmlTextReaderMoveToNextAttribute(self._o)
  5113.         return ret
  5114.  
  5115.     
  5116.     def Name(self):
  5117.         ret = libxml2mod.xmlTextReaderConstName(self._o)
  5118.         return ret
  5119.  
  5120.     
  5121.     def NamespaceUri(self):
  5122.         ret = libxml2mod.xmlTextReaderConstNamespaceUri(self._o)
  5123.         return ret
  5124.  
  5125.     
  5126.     def NewDoc(self, cur, URL, encoding, options):
  5127.         ret = libxml2mod.xmlReaderNewDoc(self._o, cur, URL, encoding, options)
  5128.         return ret
  5129.  
  5130.     
  5131.     def NewFd(self, fd, URL, encoding, options):
  5132.         ret = libxml2mod.xmlReaderNewFd(self._o, fd, URL, encoding, options)
  5133.         return ret
  5134.  
  5135.     
  5136.     def NewFile(self, filename, encoding, options):
  5137.         ret = libxml2mod.xmlReaderNewFile(self._o, filename, encoding, options)
  5138.         return ret
  5139.  
  5140.     
  5141.     def NewMemory(self, buffer, size, URL, encoding, options):
  5142.         ret = libxml2mod.xmlReaderNewMemory(self._o, buffer, size, URL, encoding, options)
  5143.         return ret
  5144.  
  5145.     
  5146.     def NewWalker(self, doc):
  5147.         if doc is None:
  5148.             doc__o = None
  5149.         else:
  5150.             doc__o = doc._o
  5151.         ret = libxml2mod.xmlReaderNewWalker(self._o, doc__o)
  5152.         return ret
  5153.  
  5154.     
  5155.     def Next(self):
  5156.         ret = libxml2mod.xmlTextReaderNext(self._o)
  5157.         return ret
  5158.  
  5159.     
  5160.     def NextSibling(self):
  5161.         ret = libxml2mod.xmlTextReaderNextSibling(self._o)
  5162.         return ret
  5163.  
  5164.     
  5165.     def NodeType(self):
  5166.         ret = libxml2mod.xmlTextReaderNodeType(self._o)
  5167.         return ret
  5168.  
  5169.     
  5170.     def Normalization(self):
  5171.         ret = libxml2mod.xmlTextReaderNormalization(self._o)
  5172.         return ret
  5173.  
  5174.     
  5175.     def Prefix(self):
  5176.         ret = libxml2mod.xmlTextReaderConstPrefix(self._o)
  5177.         return ret
  5178.  
  5179.     
  5180.     def Preserve(self):
  5181.         ret = libxml2mod.xmlTextReaderPreserve(self._o)
  5182.         if ret is None:
  5183.             raise treeError('xmlTextReaderPreserve() failed')
  5184.         ret is None
  5185.         _xmlTextReader__tmp = xmlNode(_obj = ret)
  5186.         return _xmlTextReader__tmp
  5187.  
  5188.     
  5189.     def QuoteChar(self):
  5190.         ret = libxml2mod.xmlTextReaderQuoteChar(self._o)
  5191.         return ret
  5192.  
  5193.     
  5194.     def Read(self):
  5195.         ret = libxml2mod.xmlTextReaderRead(self._o)
  5196.         return ret
  5197.  
  5198.     
  5199.     def ReadAttributeValue(self):
  5200.         ret = libxml2mod.xmlTextReaderReadAttributeValue(self._o)
  5201.         return ret
  5202.  
  5203.     
  5204.     def ReadInnerXml(self):
  5205.         ret = libxml2mod.xmlTextReaderReadInnerXml(self._o)
  5206.         return ret
  5207.  
  5208.     
  5209.     def ReadOuterXml(self):
  5210.         ret = libxml2mod.xmlTextReaderReadOuterXml(self._o)
  5211.         return ret
  5212.  
  5213.     
  5214.     def ReadState(self):
  5215.         ret = libxml2mod.xmlTextReaderReadState(self._o)
  5216.         return ret
  5217.  
  5218.     
  5219.     def ReadString(self):
  5220.         ret = libxml2mod.xmlTextReaderReadString(self._o)
  5221.         return ret
  5222.  
  5223.     
  5224.     def RelaxNGSetSchema(self, schema):
  5225.         if schema is None:
  5226.             schema__o = None
  5227.         else:
  5228.             schema__o = schema._o
  5229.         ret = libxml2mod.xmlTextReaderRelaxNGSetSchema(self._o, schema__o)
  5230.         return ret
  5231.  
  5232.     
  5233.     def RelaxNGValidate(self, rng):
  5234.         ret = libxml2mod.xmlTextReaderRelaxNGValidate(self._o, rng)
  5235.         return ret
  5236.  
  5237.     
  5238.     def SchemaValidate(self, xsd):
  5239.         ret = libxml2mod.xmlTextReaderSchemaValidate(self._o, xsd)
  5240.         return ret
  5241.  
  5242.     
  5243.     def SchemaValidateCtxt(self, ctxt, options):
  5244.         if ctxt is None:
  5245.             ctxt__o = None
  5246.         else:
  5247.             ctxt__o = ctxt._o
  5248.         ret = libxml2mod.xmlTextReaderSchemaValidateCtxt(self._o, ctxt__o, options)
  5249.         return ret
  5250.  
  5251.     
  5252.     def SetParserProp(self, prop, value):
  5253.         ret = libxml2mod.xmlTextReaderSetParserProp(self._o, prop, value)
  5254.         return ret
  5255.  
  5256.     
  5257.     def SetSchema(self, schema):
  5258.         if schema is None:
  5259.             schema__o = None
  5260.         else:
  5261.             schema__o = schema._o
  5262.         ret = libxml2mod.xmlTextReaderSetSchema(self._o, schema__o)
  5263.         return ret
  5264.  
  5265.     
  5266.     def Setup(self, input, URL, encoding, options):
  5267.         if input is None:
  5268.             input__o = None
  5269.         else:
  5270.             input__o = input._o
  5271.         ret = libxml2mod.xmlTextReaderSetup(self._o, input__o, URL, encoding, options)
  5272.         return ret
  5273.  
  5274.     
  5275.     def Standalone(self):
  5276.         ret = libxml2mod.xmlTextReaderStandalone(self._o)
  5277.         return ret
  5278.  
  5279.     
  5280.     def String(self, str):
  5281.         ret = libxml2mod.xmlTextReaderConstString(self._o, str)
  5282.         return ret
  5283.  
  5284.     
  5285.     def Value(self):
  5286.         ret = libxml2mod.xmlTextReaderConstValue(self._o)
  5287.         return ret
  5288.  
  5289.     
  5290.     def XmlLang(self):
  5291.         ret = libxml2mod.xmlTextReaderConstXmlLang(self._o)
  5292.         return ret
  5293.  
  5294.     
  5295.     def XmlVersion(self):
  5296.         ret = libxml2mod.xmlTextReaderConstXmlVersion(self._o)
  5297.         return ret
  5298.  
  5299.  
  5300.  
  5301. class xmlReg:
  5302.     
  5303.     def __init__(self, _obj = None):
  5304.         if _obj != None:
  5305.             self._o = _obj
  5306.             return None
  5307.         self._o = None
  5308.  
  5309.     
  5310.     def __del__(self):
  5311.         if self._o != None:
  5312.             libxml2mod.xmlRegFreeRegexp(self._o)
  5313.         
  5314.         self._o = None
  5315.  
  5316.     
  5317.     def regexpExec(self, content):
  5318.         ret = libxml2mod.xmlRegexpExec(self._o, content)
  5319.         return ret
  5320.  
  5321.     
  5322.     def regexpIsDeterminist(self):
  5323.         ret = libxml2mod.xmlRegexpIsDeterminist(self._o)
  5324.         return ret
  5325.  
  5326.     
  5327.     def regexpPrint(self, output):
  5328.         libxml2mod.xmlRegexpPrint(output, self._o)
  5329.  
  5330.  
  5331.  
  5332. class catalog:
  5333.     
  5334.     def __init__(self, _obj = None):
  5335.         if _obj != None:
  5336.             self._o = _obj
  5337.             return None
  5338.         self._o = None
  5339.  
  5340.     
  5341.     def __del__(self):
  5342.         if self._o != None:
  5343.             libxml2mod.xmlFreeCatalog(self._o)
  5344.         
  5345.         self._o = None
  5346.  
  5347.     
  5348.     def add(self, type, orig, replace):
  5349.         ret = libxml2mod.xmlACatalogAdd(self._o, type, orig, replace)
  5350.         return ret
  5351.  
  5352.     
  5353.     def catalogIsEmpty(self):
  5354.         ret = libxml2mod.xmlCatalogIsEmpty(self._o)
  5355.         return ret
  5356.  
  5357.     
  5358.     def convertSGMLCatalog(self):
  5359.         ret = libxml2mod.xmlConvertSGMLCatalog(self._o)
  5360.         return ret
  5361.  
  5362.     
  5363.     def dump(self, out):
  5364.         libxml2mod.xmlACatalogDump(self._o, out)
  5365.  
  5366.     
  5367.     def remove(self, value):
  5368.         ret = libxml2mod.xmlACatalogRemove(self._o, value)
  5369.         return ret
  5370.  
  5371.     
  5372.     def resolve(self, pubID, sysID):
  5373.         ret = libxml2mod.xmlACatalogResolve(self._o, pubID, sysID)
  5374.         return ret
  5375.  
  5376.     
  5377.     def resolvePublic(self, pubID):
  5378.         ret = libxml2mod.xmlACatalogResolvePublic(self._o, pubID)
  5379.         return ret
  5380.  
  5381.     
  5382.     def resolveSystem(self, sysID):
  5383.         ret = libxml2mod.xmlACatalogResolveSystem(self._o, sysID)
  5384.         return ret
  5385.  
  5386.     
  5387.     def resolveURI(self, URI):
  5388.         ret = libxml2mod.xmlACatalogResolveURI(self._o, URI)
  5389.         return ret
  5390.  
  5391.  
  5392.  
  5393. class xmlEntity(xmlNode):
  5394.     
  5395.     def __init__(self, _obj = None):
  5396.         if type(_obj).__name__ != 'PyCObject':
  5397.             raise TypeError, 'xmlEntity needs a PyCObject argument'
  5398.         type(_obj).__name__ != 'PyCObject'
  5399.         self._o = _obj
  5400.         xmlNode.__init__(self, _obj = _obj)
  5401.  
  5402.     
  5403.     def __repr__(self):
  5404.         return '<xmlEntity object at 0x%x>' % (long(pos_id(self)),)
  5405.  
  5406.     
  5407.     def handleEntity(self, ctxt):
  5408.         if ctxt is None:
  5409.             ctxt__o = None
  5410.         else:
  5411.             ctxt__o = ctxt._o
  5412.         libxml2mod.xmlHandleEntity(ctxt__o, self._o)
  5413.  
  5414.  
  5415.  
  5416. class relaxNgSchema:
  5417.     
  5418.     def __init__(self, _obj = None):
  5419.         if _obj != None:
  5420.             self._o = _obj
  5421.             return None
  5422.         self._o = None
  5423.  
  5424.     
  5425.     def __del__(self):
  5426.         if self._o != None:
  5427.             libxml2mod.xmlRelaxNGFree(self._o)
  5428.         
  5429.         self._o = None
  5430.  
  5431.     
  5432.     def relaxNGDump(self, output):
  5433.         libxml2mod.xmlRelaxNGDump(output, self._o)
  5434.  
  5435.     
  5436.     def relaxNGDumpTree(self, output):
  5437.         libxml2mod.xmlRelaxNGDumpTree(output, self._o)
  5438.  
  5439.     
  5440.     def relaxNGNewValidCtxt(self):
  5441.         ret = libxml2mod.xmlRelaxNGNewValidCtxt(self._o)
  5442.         if ret is None:
  5443.             raise treeError('xmlRelaxNGNewValidCtxt() failed')
  5444.         ret is None
  5445.         _relaxNgSchema__tmp = relaxNgValidCtxt(_obj = ret)
  5446.         _relaxNgSchema__tmp.schema = self
  5447.         return _relaxNgSchema__tmp
  5448.  
  5449.     
  5450.     def RelaxNGSetSchema(self, reader):
  5451.         if reader is None:
  5452.             reader__o = None
  5453.         else:
  5454.             reader__o = reader._o
  5455.         ret = libxml2mod.xmlTextReaderRelaxNGSetSchema(reader__o, self._o)
  5456.         return ret
  5457.  
  5458.  
  5459.  
  5460. class Schema:
  5461.     
  5462.     def __init__(self, _obj = None):
  5463.         if _obj != None:
  5464.             self._o = _obj
  5465.             return None
  5466.         self._o = None
  5467.  
  5468.     
  5469.     def __del__(self):
  5470.         if self._o != None:
  5471.             libxml2mod.xmlSchemaFree(self._o)
  5472.         
  5473.         self._o = None
  5474.  
  5475.     
  5476.     def SetSchema(self, reader):
  5477.         if reader is None:
  5478.             reader__o = None
  5479.         else:
  5480.             reader__o = reader._o
  5481.         ret = libxml2mod.xmlTextReaderSetSchema(reader__o, self._o)
  5482.         return ret
  5483.  
  5484.     
  5485.     def schemaDump(self, output):
  5486.         libxml2mod.xmlSchemaDump(output, self._o)
  5487.  
  5488.     
  5489.     def schemaNewValidCtxt(self):
  5490.         ret = libxml2mod.xmlSchemaNewValidCtxt(self._o)
  5491.         if ret is None:
  5492.             raise treeError('xmlSchemaNewValidCtxt() failed')
  5493.         ret is None
  5494.         _Schema__tmp = SchemaValidCtxt(_obj = ret)
  5495.         _Schema__tmp.schema = self
  5496.         return _Schema__tmp
  5497.  
  5498.  
  5499.  
  5500. class Error:
  5501.     
  5502.     def __init__(self, _obj = None):
  5503.         if _obj != None:
  5504.             self._o = _obj
  5505.             return None
  5506.         self._o = None
  5507.  
  5508.     
  5509.     def code(self):
  5510.         ret = libxml2mod.xmlErrorGetCode(self._o)
  5511.         return ret
  5512.  
  5513.     
  5514.     def domain(self):
  5515.         ret = libxml2mod.xmlErrorGetDomain(self._o)
  5516.         return ret
  5517.  
  5518.     
  5519.     def file(self):
  5520.         ret = libxml2mod.xmlErrorGetFile(self._o)
  5521.         return ret
  5522.  
  5523.     
  5524.     def level(self):
  5525.         ret = libxml2mod.xmlErrorGetLevel(self._o)
  5526.         return ret
  5527.  
  5528.     
  5529.     def line(self):
  5530.         ret = libxml2mod.xmlErrorGetLine(self._o)
  5531.         return ret
  5532.  
  5533.     
  5534.     def message(self):
  5535.         ret = libxml2mod.xmlErrorGetMessage(self._o)
  5536.         return ret
  5537.  
  5538.     
  5539.     def copyError(self, to):
  5540.         if to is None:
  5541.             to__o = None
  5542.         else:
  5543.             to__o = to._o
  5544.         ret = libxml2mod.xmlCopyError(self._o, to__o)
  5545.         return ret
  5546.  
  5547.     
  5548.     def resetError(self):
  5549.         libxml2mod.xmlResetError(self._o)
  5550.  
  5551.  
  5552.  
  5553. class relaxNgValidCtxt(relaxNgValidCtxtCore):
  5554.     
  5555.     def __init__(self, _obj = None):
  5556.         self.schema = None
  5557.         self._o = _obj
  5558.         relaxNgValidCtxtCore.__init__(self, _obj = _obj)
  5559.  
  5560.     
  5561.     def __del__(self):
  5562.         if self._o != None:
  5563.             libxml2mod.xmlRelaxNGFreeValidCtxt(self._o)
  5564.         
  5565.         self._o = None
  5566.  
  5567.     
  5568.     def relaxNGValidateDoc(self, doc):
  5569.         if doc is None:
  5570.             doc__o = None
  5571.         else:
  5572.             doc__o = doc._o
  5573.         ret = libxml2mod.xmlRelaxNGValidateDoc(self._o, doc__o)
  5574.         return ret
  5575.  
  5576.     
  5577.     def relaxNGValidateFullElement(self, doc, elem):
  5578.         if doc is None:
  5579.             doc__o = None
  5580.         else:
  5581.             doc__o = doc._o
  5582.         if elem is None:
  5583.             elem__o = None
  5584.         else:
  5585.             elem__o = elem._o
  5586.         ret = libxml2mod.xmlRelaxNGValidateFullElement(self._o, doc__o, elem__o)
  5587.         return ret
  5588.  
  5589.     
  5590.     def relaxNGValidatePopElement(self, doc, elem):
  5591.         if doc is None:
  5592.             doc__o = None
  5593.         else:
  5594.             doc__o = doc._o
  5595.         if elem is None:
  5596.             elem__o = None
  5597.         else:
  5598.             elem__o = elem._o
  5599.         ret = libxml2mod.xmlRelaxNGValidatePopElement(self._o, doc__o, elem__o)
  5600.         return ret
  5601.  
  5602.     
  5603.     def relaxNGValidatePushCData(self, data, len):
  5604.         ret = libxml2mod.xmlRelaxNGValidatePushCData(self._o, data, len)
  5605.         return ret
  5606.  
  5607.     
  5608.     def relaxNGValidatePushElement(self, doc, elem):
  5609.         if doc is None:
  5610.             doc__o = None
  5611.         else:
  5612.             doc__o = doc._o
  5613.         if elem is None:
  5614.             elem__o = None
  5615.         else:
  5616.             elem__o = elem._o
  5617.         ret = libxml2mod.xmlRelaxNGValidatePushElement(self._o, doc__o, elem__o)
  5618.         return ret
  5619.  
  5620.  
  5621.  
  5622. class xpathParserContext:
  5623.     
  5624.     def __init__(self, _obj = None):
  5625.         if _obj != None:
  5626.             self._o = _obj
  5627.             return None
  5628.         self._o = None
  5629.  
  5630.     
  5631.     def context(self):
  5632.         ret = libxml2mod.xmlXPathParserGetContext(self._o)
  5633.         if ret is None:
  5634.             raise xpathError('xmlXPathParserGetContext() failed')
  5635.         ret is None
  5636.         _xpathParserContext__tmp = xpathContext(_obj = ret)
  5637.         return _xpathParserContext__tmp
  5638.  
  5639.     
  5640.     def xpathAddValues(self):
  5641.         libxml2mod.xmlXPathAddValues(self._o)
  5642.  
  5643.     
  5644.     def xpathBooleanFunction(self, nargs):
  5645.         libxml2mod.xmlXPathBooleanFunction(self._o, nargs)
  5646.  
  5647.     
  5648.     def xpathCeilingFunction(self, nargs):
  5649.         libxml2mod.xmlXPathCeilingFunction(self._o, nargs)
  5650.  
  5651.     
  5652.     def xpathCompareValues(self, inf, strict):
  5653.         ret = libxml2mod.xmlXPathCompareValues(self._o, inf, strict)
  5654.         return ret
  5655.  
  5656.     
  5657.     def xpathConcatFunction(self, nargs):
  5658.         libxml2mod.xmlXPathConcatFunction(self._o, nargs)
  5659.  
  5660.     
  5661.     def xpathContainsFunction(self, nargs):
  5662.         libxml2mod.xmlXPathContainsFunction(self._o, nargs)
  5663.  
  5664.     
  5665.     def xpathCountFunction(self, nargs):
  5666.         libxml2mod.xmlXPathCountFunction(self._o, nargs)
  5667.  
  5668.     
  5669.     def xpathDivValues(self):
  5670.         libxml2mod.xmlXPathDivValues(self._o)
  5671.  
  5672.     
  5673.     def xpathEqualValues(self):
  5674.         ret = libxml2mod.xmlXPathEqualValues(self._o)
  5675.         return ret
  5676.  
  5677.     
  5678.     def xpathErr(self, error):
  5679.         libxml2mod.xmlXPathErr(self._o, error)
  5680.  
  5681.     
  5682.     def xpathEvalExpr(self):
  5683.         libxml2mod.xmlXPathEvalExpr(self._o)
  5684.  
  5685.     
  5686.     def xpathFalseFunction(self, nargs):
  5687.         libxml2mod.xmlXPathFalseFunction(self._o, nargs)
  5688.  
  5689.     
  5690.     def xpathFloorFunction(self, nargs):
  5691.         libxml2mod.xmlXPathFloorFunction(self._o, nargs)
  5692.  
  5693.     
  5694.     def xpathFreeParserContext(self):
  5695.         libxml2mod.xmlXPathFreeParserContext(self._o)
  5696.  
  5697.     
  5698.     def xpathIdFunction(self, nargs):
  5699.         libxml2mod.xmlXPathIdFunction(self._o, nargs)
  5700.  
  5701.     
  5702.     def xpathLangFunction(self, nargs):
  5703.         libxml2mod.xmlXPathLangFunction(self._o, nargs)
  5704.  
  5705.     
  5706.     def xpathLastFunction(self, nargs):
  5707.         libxml2mod.xmlXPathLastFunction(self._o, nargs)
  5708.  
  5709.     
  5710.     def xpathLocalNameFunction(self, nargs):
  5711.         libxml2mod.xmlXPathLocalNameFunction(self._o, nargs)
  5712.  
  5713.     
  5714.     def xpathModValues(self):
  5715.         libxml2mod.xmlXPathModValues(self._o)
  5716.  
  5717.     
  5718.     def xpathMultValues(self):
  5719.         libxml2mod.xmlXPathMultValues(self._o)
  5720.  
  5721.     
  5722.     def xpathNamespaceURIFunction(self, nargs):
  5723.         libxml2mod.xmlXPathNamespaceURIFunction(self._o, nargs)
  5724.  
  5725.     
  5726.     def xpathNextAncestor(self, cur):
  5727.         if cur is None:
  5728.             cur__o = None
  5729.         else:
  5730.             cur__o = cur._o
  5731.         ret = libxml2mod.xmlXPathNextAncestor(self._o, cur__o)
  5732.         if ret is None:
  5733.             raise xpathError('xmlXPathNextAncestor() failed')
  5734.         ret is None
  5735.         _xpathParserContext__tmp = xmlNode(_obj = ret)
  5736.         return _xpathParserContext__tmp
  5737.  
  5738.     
  5739.     def xpathNextAncestorOrSelf(self, cur):
  5740.         if cur is None:
  5741.             cur__o = None
  5742.         else:
  5743.             cur__o = cur._o
  5744.         ret = libxml2mod.xmlXPathNextAncestorOrSelf(self._o, cur__o)
  5745.         if ret is None:
  5746.             raise xpathError('xmlXPathNextAncestorOrSelf() failed')
  5747.         ret is None
  5748.         _xpathParserContext__tmp = xmlNode(_obj = ret)
  5749.         return _xpathParserContext__tmp
  5750.  
  5751.     
  5752.     def xpathNextAttribute(self, cur):
  5753.         if cur is None:
  5754.             cur__o = None
  5755.         else:
  5756.             cur__o = cur._o
  5757.         ret = libxml2mod.xmlXPathNextAttribute(self._o, cur__o)
  5758.         if ret is None:
  5759.             raise xpathError('xmlXPathNextAttribute() failed')
  5760.         ret is None
  5761.         _xpathParserContext__tmp = xmlNode(_obj = ret)
  5762.         return _xpathParserContext__tmp
  5763.  
  5764.     
  5765.     def xpathNextChild(self, cur):
  5766.         if cur is None:
  5767.             cur__o = None
  5768.         else:
  5769.             cur__o = cur._o
  5770.         ret = libxml2mod.xmlXPathNextChild(self._o, cur__o)
  5771.         if ret is None:
  5772.             raise xpathError('xmlXPathNextChild() failed')
  5773.         ret is None
  5774.         _xpathParserContext__tmp = xmlNode(_obj = ret)
  5775.         return _xpathParserContext__tmp
  5776.  
  5777.     
  5778.     def xpathNextDescendant(self, cur):
  5779.         if cur is None:
  5780.             cur__o = None
  5781.         else:
  5782.             cur__o = cur._o
  5783.         ret = libxml2mod.xmlXPathNextDescendant(self._o, cur__o)
  5784.         if ret is None:
  5785.             raise xpathError('xmlXPathNextDescendant() failed')
  5786.         ret is None
  5787.         _xpathParserContext__tmp = xmlNode(_obj = ret)
  5788.         return _xpathParserContext__tmp
  5789.  
  5790.     
  5791.     def xpathNextDescendantOrSelf(self, cur):
  5792.         if cur is None:
  5793.             cur__o = None
  5794.         else:
  5795.             cur__o = cur._o
  5796.         ret = libxml2mod.xmlXPathNextDescendantOrSelf(self._o, cur__o)
  5797.         if ret is None:
  5798.             raise xpathError('xmlXPathNextDescendantOrSelf() failed')
  5799.         ret is None
  5800.         _xpathParserContext__tmp = xmlNode(_obj = ret)
  5801.         return _xpathParserContext__tmp
  5802.  
  5803.     
  5804.     def xpathNextFollowing(self, cur):
  5805.         if cur is None:
  5806.             cur__o = None
  5807.         else:
  5808.             cur__o = cur._o
  5809.         ret = libxml2mod.xmlXPathNextFollowing(self._o, cur__o)
  5810.         if ret is None:
  5811.             raise xpathError('xmlXPathNextFollowing() failed')
  5812.         ret is None
  5813.         _xpathParserContext__tmp = xmlNode(_obj = ret)
  5814.         return _xpathParserContext__tmp
  5815.  
  5816.     
  5817.     def xpathNextFollowingSibling(self, cur):
  5818.         if cur is None:
  5819.             cur__o = None
  5820.         else:
  5821.             cur__o = cur._o
  5822.         ret = libxml2mod.xmlXPathNextFollowingSibling(self._o, cur__o)
  5823.         if ret is None:
  5824.             raise xpathError('xmlXPathNextFollowingSibling() failed')
  5825.         ret is None
  5826.         _xpathParserContext__tmp = xmlNode(_obj = ret)
  5827.         return _xpathParserContext__tmp
  5828.  
  5829.     
  5830.     def xpathNextNamespace(self, cur):
  5831.         if cur is None:
  5832.             cur__o = None
  5833.         else:
  5834.             cur__o = cur._o
  5835.         ret = libxml2mod.xmlXPathNextNamespace(self._o, cur__o)
  5836.         if ret is None:
  5837.             raise xpathError('xmlXPathNextNamespace() failed')
  5838.         ret is None
  5839.         _xpathParserContext__tmp = xmlNode(_obj = ret)
  5840.         return _xpathParserContext__tmp
  5841.  
  5842.     
  5843.     def xpathNextParent(self, cur):
  5844.         if cur is None:
  5845.             cur__o = None
  5846.         else:
  5847.             cur__o = cur._o
  5848.         ret = libxml2mod.xmlXPathNextParent(self._o, cur__o)
  5849.         if ret is None:
  5850.             raise xpathError('xmlXPathNextParent() failed')
  5851.         ret is None
  5852.         _xpathParserContext__tmp = xmlNode(_obj = ret)
  5853.         return _xpathParserContext__tmp
  5854.  
  5855.     
  5856.     def xpathNextPreceding(self, cur):
  5857.         if cur is None:
  5858.             cur__o = None
  5859.         else:
  5860.             cur__o = cur._o
  5861.         ret = libxml2mod.xmlXPathNextPreceding(self._o, cur__o)
  5862.         if ret is None:
  5863.             raise xpathError('xmlXPathNextPreceding() failed')
  5864.         ret is None
  5865.         _xpathParserContext__tmp = xmlNode(_obj = ret)
  5866.         return _xpathParserContext__tmp
  5867.  
  5868.     
  5869.     def xpathNextPrecedingSibling(self, cur):
  5870.         if cur is None:
  5871.             cur__o = None
  5872.         else:
  5873.             cur__o = cur._o
  5874.         ret = libxml2mod.xmlXPathNextPrecedingSibling(self._o, cur__o)
  5875.         if ret is None:
  5876.             raise xpathError('xmlXPathNextPrecedingSibling() failed')
  5877.         ret is None
  5878.         _xpathParserContext__tmp = xmlNode(_obj = ret)
  5879.         return _xpathParserContext__tmp
  5880.  
  5881.     
  5882.     def xpathNextSelf(self, cur):
  5883.         if cur is None:
  5884.             cur__o = None
  5885.         else:
  5886.             cur__o = cur._o
  5887.         ret = libxml2mod.xmlXPathNextSelf(self._o, cur__o)
  5888.         if ret is None:
  5889.             raise xpathError('xmlXPathNextSelf() failed')
  5890.         ret is None
  5891.         _xpathParserContext__tmp = xmlNode(_obj = ret)
  5892.         return _xpathParserContext__tmp
  5893.  
  5894.     
  5895.     def xpathNormalizeFunction(self, nargs):
  5896.         libxml2mod.xmlXPathNormalizeFunction(self._o, nargs)
  5897.  
  5898.     
  5899.     def xpathNotEqualValues(self):
  5900.         ret = libxml2mod.xmlXPathNotEqualValues(self._o)
  5901.         return ret
  5902.  
  5903.     
  5904.     def xpathNotFunction(self, nargs):
  5905.         libxml2mod.xmlXPathNotFunction(self._o, nargs)
  5906.  
  5907.     
  5908.     def xpathNumberFunction(self, nargs):
  5909.         libxml2mod.xmlXPathNumberFunction(self._o, nargs)
  5910.  
  5911.     
  5912.     def xpathParseNCName(self):
  5913.         ret = libxml2mod.xmlXPathParseNCName(self._o)
  5914.         return ret
  5915.  
  5916.     
  5917.     def xpathParseName(self):
  5918.         ret = libxml2mod.xmlXPathParseName(self._o)
  5919.         return ret
  5920.  
  5921.     
  5922.     def xpathPopBoolean(self):
  5923.         ret = libxml2mod.xmlXPathPopBoolean(self._o)
  5924.         return ret
  5925.  
  5926.     
  5927.     def xpathPopNumber(self):
  5928.         ret = libxml2mod.xmlXPathPopNumber(self._o)
  5929.         return ret
  5930.  
  5931.     
  5932.     def xpathPopString(self):
  5933.         ret = libxml2mod.xmlXPathPopString(self._o)
  5934.         return ret
  5935.  
  5936.     
  5937.     def xpathPositionFunction(self, nargs):
  5938.         libxml2mod.xmlXPathPositionFunction(self._o, nargs)
  5939.  
  5940.     
  5941.     def xpathRoot(self):
  5942.         libxml2mod.xmlXPathRoot(self._o)
  5943.  
  5944.     
  5945.     def xpathRoundFunction(self, nargs):
  5946.         libxml2mod.xmlXPathRoundFunction(self._o, nargs)
  5947.  
  5948.     
  5949.     def xpathStartsWithFunction(self, nargs):
  5950.         libxml2mod.xmlXPathStartsWithFunction(self._o, nargs)
  5951.  
  5952.     
  5953.     def xpathStringFunction(self, nargs):
  5954.         libxml2mod.xmlXPathStringFunction(self._o, nargs)
  5955.  
  5956.     
  5957.     def xpathStringLengthFunction(self, nargs):
  5958.         libxml2mod.xmlXPathStringLengthFunction(self._o, nargs)
  5959.  
  5960.     
  5961.     def xpathSubValues(self):
  5962.         libxml2mod.xmlXPathSubValues(self._o)
  5963.  
  5964.     
  5965.     def xpathSubstringAfterFunction(self, nargs):
  5966.         libxml2mod.xmlXPathSubstringAfterFunction(self._o, nargs)
  5967.  
  5968.     
  5969.     def xpathSubstringBeforeFunction(self, nargs):
  5970.         libxml2mod.xmlXPathSubstringBeforeFunction(self._o, nargs)
  5971.  
  5972.     
  5973.     def xpathSubstringFunction(self, nargs):
  5974.         libxml2mod.xmlXPathSubstringFunction(self._o, nargs)
  5975.  
  5976.     
  5977.     def xpathSumFunction(self, nargs):
  5978.         libxml2mod.xmlXPathSumFunction(self._o, nargs)
  5979.  
  5980.     
  5981.     def xpathTranslateFunction(self, nargs):
  5982.         libxml2mod.xmlXPathTranslateFunction(self._o, nargs)
  5983.  
  5984.     
  5985.     def xpathTrueFunction(self, nargs):
  5986.         libxml2mod.xmlXPathTrueFunction(self._o, nargs)
  5987.  
  5988.     
  5989.     def xpathValueFlipSign(self):
  5990.         libxml2mod.xmlXPathValueFlipSign(self._o)
  5991.  
  5992.     
  5993.     def xpatherror(self, file, line, no):
  5994.         libxml2mod.xmlXPatherror(self._o, file, line, no)
  5995.  
  5996.     
  5997.     def xpointerEvalRangePredicate(self):
  5998.         libxml2mod.xmlXPtrEvalRangePredicate(self._o)
  5999.  
  6000.     
  6001.     def xpointerRangeToFunction(self, nargs):
  6002.         libxml2mod.xmlXPtrRangeToFunction(self._o, nargs)
  6003.  
  6004.  
  6005.  
  6006. class parserCtxt(parserCtxtCore):
  6007.     
  6008.     def __init__(self, _obj = None):
  6009.         self._o = _obj
  6010.         parserCtxtCore.__init__(self, _obj = _obj)
  6011.  
  6012.     
  6013.     def __del__(self):
  6014.         if self._o != None:
  6015.             libxml2mod.xmlFreeParserCtxt(self._o)
  6016.         
  6017.         self._o = None
  6018.  
  6019.     
  6020.     def doc(self):
  6021.         ret = libxml2mod.xmlParserGetDoc(self._o)
  6022.         if ret is None:
  6023.             raise parserError('xmlParserGetDoc() failed')
  6024.         ret is None
  6025.         _parserCtxt__tmp = xmlDoc(_obj = ret)
  6026.         return _parserCtxt__tmp
  6027.  
  6028.     
  6029.     def isValid(self):
  6030.         ret = libxml2mod.xmlParserGetIsValid(self._o)
  6031.         return ret
  6032.  
  6033.     
  6034.     def lineNumbers(self, linenumbers):
  6035.         libxml2mod.xmlParserSetLineNumbers(self._o, linenumbers)
  6036.  
  6037.     
  6038.     def loadSubset(self, loadsubset):
  6039.         libxml2mod.xmlParserSetLoadSubset(self._o, loadsubset)
  6040.  
  6041.     
  6042.     def pedantic(self, pedantic):
  6043.         libxml2mod.xmlParserSetPedantic(self._o, pedantic)
  6044.  
  6045.     
  6046.     def replaceEntities(self, replaceEntities):
  6047.         libxml2mod.xmlParserSetReplaceEntities(self._o, replaceEntities)
  6048.  
  6049.     
  6050.     def validate(self, validate):
  6051.         libxml2mod.xmlParserSetValidate(self._o, validate)
  6052.  
  6053.     
  6054.     def wellFormed(self):
  6055.         ret = libxml2mod.xmlParserGetWellFormed(self._o)
  6056.         return ret
  6057.  
  6058.     
  6059.     def htmlCtxtReadDoc(self, cur, URL, encoding, options):
  6060.         ret = libxml2mod.htmlCtxtReadDoc(self._o, cur, URL, encoding, options)
  6061.         if ret is None:
  6062.             raise treeError('htmlCtxtReadDoc() failed')
  6063.         ret is None
  6064.         _parserCtxt__tmp = xmlDoc(_obj = ret)
  6065.         return _parserCtxt__tmp
  6066.  
  6067.     
  6068.     def htmlCtxtReadFd(self, fd, URL, encoding, options):
  6069.         ret = libxml2mod.htmlCtxtReadFd(self._o, fd, URL, encoding, options)
  6070.         if ret is None:
  6071.             raise treeError('htmlCtxtReadFd() failed')
  6072.         ret is None
  6073.         _parserCtxt__tmp = xmlDoc(_obj = ret)
  6074.         return _parserCtxt__tmp
  6075.  
  6076.     
  6077.     def htmlCtxtReadFile(self, filename, encoding, options):
  6078.         ret = libxml2mod.htmlCtxtReadFile(self._o, filename, encoding, options)
  6079.         if ret is None:
  6080.             raise treeError('htmlCtxtReadFile() failed')
  6081.         ret is None
  6082.         _parserCtxt__tmp = xmlDoc(_obj = ret)
  6083.         return _parserCtxt__tmp
  6084.  
  6085.     
  6086.     def htmlCtxtReadMemory(self, buffer, size, URL, encoding, options):
  6087.         ret = libxml2mod.htmlCtxtReadMemory(self._o, buffer, size, URL, encoding, options)
  6088.         if ret is None:
  6089.             raise treeError('htmlCtxtReadMemory() failed')
  6090.         ret is None
  6091.         _parserCtxt__tmp = xmlDoc(_obj = ret)
  6092.         return _parserCtxt__tmp
  6093.  
  6094.     
  6095.     def htmlCtxtReset(self):
  6096.         libxml2mod.htmlCtxtReset(self._o)
  6097.  
  6098.     
  6099.     def htmlCtxtUseOptions(self, options):
  6100.         ret = libxml2mod.htmlCtxtUseOptions(self._o, options)
  6101.         return ret
  6102.  
  6103.     
  6104.     def htmlFreeParserCtxt(self):
  6105.         libxml2mod.htmlFreeParserCtxt(self._o)
  6106.  
  6107.     
  6108.     def htmlParseCharRef(self):
  6109.         ret = libxml2mod.htmlParseCharRef(self._o)
  6110.         return ret
  6111.  
  6112.     
  6113.     def htmlParseChunk(self, chunk, size, terminate):
  6114.         ret = libxml2mod.htmlParseChunk(self._o, chunk, size, terminate)
  6115.         return ret
  6116.  
  6117.     
  6118.     def htmlParseDocument(self):
  6119.         ret = libxml2mod.htmlParseDocument(self._o)
  6120.         return ret
  6121.  
  6122.     
  6123.     def htmlParseElement(self):
  6124.         libxml2mod.htmlParseElement(self._o)
  6125.  
  6126.     
  6127.     def byteConsumed(self):
  6128.         ret = libxml2mod.xmlByteConsumed(self._o)
  6129.         return ret
  6130.  
  6131.     
  6132.     def clearParserCtxt(self):
  6133.         libxml2mod.xmlClearParserCtxt(self._o)
  6134.  
  6135.     
  6136.     def ctxtReadDoc(self, cur, URL, encoding, options):
  6137.         ret = libxml2mod.xmlCtxtReadDoc(self._o, cur, URL, encoding, options)
  6138.         if ret is None:
  6139.             raise treeError('xmlCtxtReadDoc() failed')
  6140.         ret is None
  6141.         _parserCtxt__tmp = xmlDoc(_obj = ret)
  6142.         return _parserCtxt__tmp
  6143.  
  6144.     
  6145.     def ctxtReadFd(self, fd, URL, encoding, options):
  6146.         ret = libxml2mod.xmlCtxtReadFd(self._o, fd, URL, encoding, options)
  6147.         if ret is None:
  6148.             raise treeError('xmlCtxtReadFd() failed')
  6149.         ret is None
  6150.         _parserCtxt__tmp = xmlDoc(_obj = ret)
  6151.         return _parserCtxt__tmp
  6152.  
  6153.     
  6154.     def ctxtReadFile(self, filename, encoding, options):
  6155.         ret = libxml2mod.xmlCtxtReadFile(self._o, filename, encoding, options)
  6156.         if ret is None:
  6157.             raise treeError('xmlCtxtReadFile() failed')
  6158.         ret is None
  6159.         _parserCtxt__tmp = xmlDoc(_obj = ret)
  6160.         return _parserCtxt__tmp
  6161.  
  6162.     
  6163.     def ctxtReadMemory(self, buffer, size, URL, encoding, options):
  6164.         ret = libxml2mod.xmlCtxtReadMemory(self._o, buffer, size, URL, encoding, options)
  6165.         if ret is None:
  6166.             raise treeError('xmlCtxtReadMemory() failed')
  6167.         ret is None
  6168.         _parserCtxt__tmp = xmlDoc(_obj = ret)
  6169.         return _parserCtxt__tmp
  6170.  
  6171.     
  6172.     def ctxtReset(self):
  6173.         libxml2mod.xmlCtxtReset(self._o)
  6174.  
  6175.     
  6176.     def ctxtResetPush(self, chunk, size, filename, encoding):
  6177.         ret = libxml2mod.xmlCtxtResetPush(self._o, chunk, size, filename, encoding)
  6178.         return ret
  6179.  
  6180.     
  6181.     def ctxtUseOptions(self, options):
  6182.         ret = libxml2mod.xmlCtxtUseOptions(self._o, options)
  6183.         return ret
  6184.  
  6185.     
  6186.     def initParserCtxt(self):
  6187.         ret = libxml2mod.xmlInitParserCtxt(self._o)
  6188.         return ret
  6189.  
  6190.     
  6191.     def parseChunk(self, chunk, size, terminate):
  6192.         ret = libxml2mod.xmlParseChunk(self._o, chunk, size, terminate)
  6193.         return ret
  6194.  
  6195.     
  6196.     def parseDocument(self):
  6197.         ret = libxml2mod.xmlParseDocument(self._o)
  6198.         return ret
  6199.  
  6200.     
  6201.     def parseExtParsedEnt(self):
  6202.         ret = libxml2mod.xmlParseExtParsedEnt(self._o)
  6203.         return ret
  6204.  
  6205.     
  6206.     def setupParserForBuffer(self, buffer, filename):
  6207.         libxml2mod.xmlSetupParserForBuffer(self._o, buffer, filename)
  6208.  
  6209.     
  6210.     def stopParser(self):
  6211.         libxml2mod.xmlStopParser(self._o)
  6212.  
  6213.     
  6214.     def decodeEntities(self, len, what, end, end2, end3):
  6215.         ret = libxml2mod.xmlDecodeEntities(self._o, len, what, end, end2, end3)
  6216.         return ret
  6217.  
  6218.     
  6219.     def handleEntity(self, entity):
  6220.         if entity is None:
  6221.             entity__o = None
  6222.         else:
  6223.             entity__o = entity._o
  6224.         libxml2mod.xmlHandleEntity(self._o, entity__o)
  6225.  
  6226.     
  6227.     def namespaceParseNCName(self):
  6228.         ret = libxml2mod.xmlNamespaceParseNCName(self._o)
  6229.         return ret
  6230.  
  6231.     
  6232.     def namespaceParseNSDef(self):
  6233.         ret = libxml2mod.xmlNamespaceParseNSDef(self._o)
  6234.         return ret
  6235.  
  6236.     
  6237.     def nextChar(self):
  6238.         libxml2mod.xmlNextChar(self._o)
  6239.  
  6240.     
  6241.     def parseAttValue(self):
  6242.         ret = libxml2mod.xmlParseAttValue(self._o)
  6243.         return ret
  6244.  
  6245.     
  6246.     def parseAttributeListDecl(self):
  6247.         libxml2mod.xmlParseAttributeListDecl(self._o)
  6248.  
  6249.     
  6250.     def parseCDSect(self):
  6251.         libxml2mod.xmlParseCDSect(self._o)
  6252.  
  6253.     
  6254.     def parseCharData(self, cdata):
  6255.         libxml2mod.xmlParseCharData(self._o, cdata)
  6256.  
  6257.     
  6258.     def parseCharRef(self):
  6259.         ret = libxml2mod.xmlParseCharRef(self._o)
  6260.         return ret
  6261.  
  6262.     
  6263.     def parseComment(self):
  6264.         libxml2mod.xmlParseComment(self._o)
  6265.  
  6266.     
  6267.     def parseContent(self):
  6268.         libxml2mod.xmlParseContent(self._o)
  6269.  
  6270.     
  6271.     def parseDocTypeDecl(self):
  6272.         libxml2mod.xmlParseDocTypeDecl(self._o)
  6273.  
  6274.     
  6275.     def parseElement(self):
  6276.         libxml2mod.xmlParseElement(self._o)
  6277.  
  6278.     
  6279.     def parseElementDecl(self):
  6280.         ret = libxml2mod.xmlParseElementDecl(self._o)
  6281.         return ret
  6282.  
  6283.     
  6284.     def parseEncName(self):
  6285.         ret = libxml2mod.xmlParseEncName(self._o)
  6286.         return ret
  6287.  
  6288.     
  6289.     def parseEncodingDecl(self):
  6290.         ret = libxml2mod.xmlParseEncodingDecl(self._o)
  6291.         return ret
  6292.  
  6293.     
  6294.     def parseEndTag(self):
  6295.         libxml2mod.xmlParseEndTag(self._o)
  6296.  
  6297.     
  6298.     def parseEntityDecl(self):
  6299.         libxml2mod.xmlParseEntityDecl(self._o)
  6300.  
  6301.     
  6302.     def parseEntityRef(self):
  6303.         ret = libxml2mod.xmlParseEntityRef(self._o)
  6304.         if ret is None:
  6305.             raise parserError('xmlParseEntityRef() failed')
  6306.         ret is None
  6307.         _parserCtxt__tmp = xmlEntity(_obj = ret)
  6308.         return _parserCtxt__tmp
  6309.  
  6310.     
  6311.     def parseExternalSubset(self, ExternalID, SystemID):
  6312.         libxml2mod.xmlParseExternalSubset(self._o, ExternalID, SystemID)
  6313.  
  6314.     
  6315.     def parseMarkupDecl(self):
  6316.         libxml2mod.xmlParseMarkupDecl(self._o)
  6317.  
  6318.     
  6319.     def parseMisc(self):
  6320.         libxml2mod.xmlParseMisc(self._o)
  6321.  
  6322.     
  6323.     def parseName(self):
  6324.         ret = libxml2mod.xmlParseName(self._o)
  6325.         return ret
  6326.  
  6327.     
  6328.     def parseNamespace(self):
  6329.         libxml2mod.xmlParseNamespace(self._o)
  6330.  
  6331.     
  6332.     def parseNmtoken(self):
  6333.         ret = libxml2mod.xmlParseNmtoken(self._o)
  6334.         return ret
  6335.  
  6336.     
  6337.     def parseNotationDecl(self):
  6338.         libxml2mod.xmlParseNotationDecl(self._o)
  6339.  
  6340.     
  6341.     def parsePEReference(self):
  6342.         libxml2mod.xmlParsePEReference(self._o)
  6343.  
  6344.     
  6345.     def parsePI(self):
  6346.         libxml2mod.xmlParsePI(self._o)
  6347.  
  6348.     
  6349.     def parsePITarget(self):
  6350.         ret = libxml2mod.xmlParsePITarget(self._o)
  6351.         return ret
  6352.  
  6353.     
  6354.     def parsePubidLiteral(self):
  6355.         ret = libxml2mod.xmlParsePubidLiteral(self._o)
  6356.         return ret
  6357.  
  6358.     
  6359.     def parseQuotedString(self):
  6360.         ret = libxml2mod.xmlParseQuotedString(self._o)
  6361.         return ret
  6362.  
  6363.     
  6364.     def parseReference(self):
  6365.         libxml2mod.xmlParseReference(self._o)
  6366.  
  6367.     
  6368.     def parseSDDecl(self):
  6369.         ret = libxml2mod.xmlParseSDDecl(self._o)
  6370.         return ret
  6371.  
  6372.     
  6373.     def parseStartTag(self):
  6374.         ret = libxml2mod.xmlParseStartTag(self._o)
  6375.         return ret
  6376.  
  6377.     
  6378.     def parseSystemLiteral(self):
  6379.         ret = libxml2mod.xmlParseSystemLiteral(self._o)
  6380.         return ret
  6381.  
  6382.     
  6383.     def parseTextDecl(self):
  6384.         libxml2mod.xmlParseTextDecl(self._o)
  6385.  
  6386.     
  6387.     def parseVersionInfo(self):
  6388.         ret = libxml2mod.xmlParseVersionInfo(self._o)
  6389.         return ret
  6390.  
  6391.     
  6392.     def parseVersionNum(self):
  6393.         ret = libxml2mod.xmlParseVersionNum(self._o)
  6394.         return ret
  6395.  
  6396.     
  6397.     def parseXMLDecl(self):
  6398.         libxml2mod.xmlParseXMLDecl(self._o)
  6399.  
  6400.     
  6401.     def parserHandlePEReference(self):
  6402.         libxml2mod.xmlParserHandlePEReference(self._o)
  6403.  
  6404.     
  6405.     def parserHandleReference(self):
  6406.         libxml2mod.xmlParserHandleReference(self._o)
  6407.  
  6408.     
  6409.     def popInput(self):
  6410.         ret = libxml2mod.xmlPopInput(self._o)
  6411.         return ret
  6412.  
  6413.     
  6414.     def scanName(self):
  6415.         ret = libxml2mod.xmlScanName(self._o)
  6416.         return ret
  6417.  
  6418.     
  6419.     def skipBlankChars(self):
  6420.         ret = libxml2mod.xmlSkipBlankChars(self._o)
  6421.         return ret
  6422.  
  6423.     
  6424.     def stringDecodeEntities(self, str, what, end, end2, end3):
  6425.         ret = libxml2mod.xmlStringDecodeEntities(self._o, str, what, end, end2, end3)
  6426.         return ret
  6427.  
  6428.     
  6429.     def stringLenDecodeEntities(self, str, len, what, end, end2, end3):
  6430.         ret = libxml2mod.xmlStringLenDecodeEntities(self._o, str, len, what, end, end2, end3)
  6431.         return ret
  6432.  
  6433.  
  6434.  
  6435. class xmlDtd(xmlNode):
  6436.     
  6437.     def __init__(self, _obj = None):
  6438.         if type(_obj).__name__ != 'PyCObject':
  6439.             raise TypeError, 'xmlDtd needs a PyCObject argument'
  6440.         type(_obj).__name__ != 'PyCObject'
  6441.         self._o = _obj
  6442.         xmlNode.__init__(self, _obj = _obj)
  6443.  
  6444.     
  6445.     def __repr__(self):
  6446.         return '<xmlDtd object at 0x%x>' % (long(pos_id(self)),)
  6447.  
  6448.     
  6449.     def debugDumpDTD(self, output):
  6450.         libxml2mod.xmlDebugDumpDTD(output, self._o)
  6451.  
  6452.     
  6453.     def copyDtd(self):
  6454.         ret = libxml2mod.xmlCopyDtd(self._o)
  6455.         if ret is None:
  6456.             raise treeError('xmlCopyDtd() failed')
  6457.         ret is None
  6458.         _xmlDtd__tmp = xmlDtd(_obj = ret)
  6459.         return _xmlDtd__tmp
  6460.  
  6461.     
  6462.     def freeDtd(self):
  6463.         libxml2mod.xmlFreeDtd(self._o)
  6464.  
  6465.     
  6466.     def dtdAttrDesc(self, elem, name):
  6467.         ret = libxml2mod.xmlGetDtdAttrDesc(self._o, elem, name)
  6468.         if ret is None:
  6469.             raise treeError('xmlGetDtdAttrDesc() failed')
  6470.         ret is None
  6471.         _xmlDtd__tmp = xmlAttribute(_obj = ret)
  6472.         return _xmlDtd__tmp
  6473.  
  6474.     
  6475.     def dtdElementDesc(self, name):
  6476.         ret = libxml2mod.xmlGetDtdElementDesc(self._o, name)
  6477.         if ret is None:
  6478.             raise treeError('xmlGetDtdElementDesc() failed')
  6479.         ret is None
  6480.         _xmlDtd__tmp = xmlElement(_obj = ret)
  6481.         return _xmlDtd__tmp
  6482.  
  6483.     
  6484.     def dtdQAttrDesc(self, elem, name, prefix):
  6485.         ret = libxml2mod.xmlGetDtdQAttrDesc(self._o, elem, name, prefix)
  6486.         if ret is None:
  6487.             raise treeError('xmlGetDtdQAttrDesc() failed')
  6488.         ret is None
  6489.         _xmlDtd__tmp = xmlAttribute(_obj = ret)
  6490.         return _xmlDtd__tmp
  6491.  
  6492.     
  6493.     def dtdQElementDesc(self, name, prefix):
  6494.         ret = libxml2mod.xmlGetDtdQElementDesc(self._o, name, prefix)
  6495.         if ret is None:
  6496.             raise treeError('xmlGetDtdQElementDesc() failed')
  6497.         ret is None
  6498.         _xmlDtd__tmp = xmlElement(_obj = ret)
  6499.         return _xmlDtd__tmp
  6500.  
  6501.  
  6502.  
  6503. class xmlNs(xmlNode):
  6504.     
  6505.     def __init__(self, _obj = None):
  6506.         if type(_obj).__name__ != 'PyCObject':
  6507.             raise TypeError, 'xmlNs needs a PyCObject argument'
  6508.         type(_obj).__name__ != 'PyCObject'
  6509.         self._o = _obj
  6510.         xmlNode.__init__(self, _obj = _obj)
  6511.  
  6512.     
  6513.     def __repr__(self):
  6514.         return '<xmlNs object at 0x%x>' % (long(pos_id(self)),)
  6515.  
  6516.     
  6517.     def copyNamespace(self):
  6518.         ret = libxml2mod.xmlCopyNamespace(self._o)
  6519.         if ret is None:
  6520.             raise treeError('xmlCopyNamespace() failed')
  6521.         ret is None
  6522.         _xmlNs__tmp = xmlNs(_obj = ret)
  6523.         return _xmlNs__tmp
  6524.  
  6525.     
  6526.     def copyNamespaceList(self):
  6527.         ret = libxml2mod.xmlCopyNamespaceList(self._o)
  6528.         if ret is None:
  6529.             raise treeError('xmlCopyNamespaceList() failed')
  6530.         ret is None
  6531.         _xmlNs__tmp = xmlNs(_obj = ret)
  6532.         return _xmlNs__tmp
  6533.  
  6534.     
  6535.     def freeNs(self):
  6536.         libxml2mod.xmlFreeNs(self._o)
  6537.  
  6538.     
  6539.     def freeNsList(self):
  6540.         libxml2mod.xmlFreeNsList(self._o)
  6541.  
  6542.     
  6543.     def newChild(self, parent, name, content):
  6544.         if parent is None:
  6545.             parent__o = None
  6546.         else:
  6547.             parent__o = parent._o
  6548.         ret = libxml2mod.xmlNewChild(parent__o, self._o, name, content)
  6549.         if ret is None:
  6550.             raise treeError('xmlNewChild() failed')
  6551.         ret is None
  6552.         _xmlNs__tmp = xmlNode(_obj = ret)
  6553.         return _xmlNs__tmp
  6554.  
  6555.     
  6556.     def newDocNode(self, doc, name, content):
  6557.         if doc is None:
  6558.             doc__o = None
  6559.         else:
  6560.             doc__o = doc._o
  6561.         ret = libxml2mod.xmlNewDocNode(doc__o, self._o, name, content)
  6562.         if ret is None:
  6563.             raise treeError('xmlNewDocNode() failed')
  6564.         ret is None
  6565.         _xmlNs__tmp = xmlNode(_obj = ret)
  6566.         return _xmlNs__tmp
  6567.  
  6568.     
  6569.     def newDocNodeEatName(self, doc, name, content):
  6570.         if doc is None:
  6571.             doc__o = None
  6572.         else:
  6573.             doc__o = doc._o
  6574.         ret = libxml2mod.xmlNewDocNodeEatName(doc__o, self._o, name, content)
  6575.         if ret is None:
  6576.             raise treeError('xmlNewDocNodeEatName() failed')
  6577.         ret is None
  6578.         _xmlNs__tmp = xmlNode(_obj = ret)
  6579.         return _xmlNs__tmp
  6580.  
  6581.     
  6582.     def newDocRawNode(self, doc, name, content):
  6583.         if doc is None:
  6584.             doc__o = None
  6585.         else:
  6586.             doc__o = doc._o
  6587.         ret = libxml2mod.xmlNewDocRawNode(doc__o, self._o, name, content)
  6588.         if ret is None:
  6589.             raise treeError('xmlNewDocRawNode() failed')
  6590.         ret is None
  6591.         _xmlNs__tmp = xmlNode(_obj = ret)
  6592.         return _xmlNs__tmp
  6593.  
  6594.     
  6595.     def newNodeEatName(self, name):
  6596.         ret = libxml2mod.xmlNewNodeEatName(self._o, name)
  6597.         if ret is None:
  6598.             raise treeError('xmlNewNodeEatName() failed')
  6599.         ret is None
  6600.         _xmlNs__tmp = xmlNode(_obj = ret)
  6601.         return _xmlNs__tmp
  6602.  
  6603.     
  6604.     def newNsProp(self, node, name, value):
  6605.         if node is None:
  6606.             node__o = None
  6607.         else:
  6608.             node__o = node._o
  6609.         ret = libxml2mod.xmlNewNsProp(node__o, self._o, name, value)
  6610.         if ret is None:
  6611.             raise treeError('xmlNewNsProp() failed')
  6612.         ret is None
  6613.         _xmlNs__tmp = xmlAttr(_obj = ret)
  6614.         return _xmlNs__tmp
  6615.  
  6616.     
  6617.     def newNsPropEatName(self, node, name, value):
  6618.         if node is None:
  6619.             node__o = None
  6620.         else:
  6621.             node__o = node._o
  6622.         ret = libxml2mod.xmlNewNsPropEatName(node__o, self._o, name, value)
  6623.         if ret is None:
  6624.             raise treeError('xmlNewNsPropEatName() failed')
  6625.         ret is None
  6626.         _xmlNs__tmp = xmlAttr(_obj = ret)
  6627.         return _xmlNs__tmp
  6628.  
  6629.     
  6630.     def newTextChild(self, parent, name, content):
  6631.         if parent is None:
  6632.             parent__o = None
  6633.         else:
  6634.             parent__o = parent._o
  6635.         ret = libxml2mod.xmlNewTextChild(parent__o, self._o, name, content)
  6636.         if ret is None:
  6637.             raise treeError('xmlNewTextChild() failed')
  6638.         ret is None
  6639.         _xmlNs__tmp = xmlNode(_obj = ret)
  6640.         return _xmlNs__tmp
  6641.  
  6642.     
  6643.     def setNs(self, node):
  6644.         if node is None:
  6645.             node__o = None
  6646.         else:
  6647.             node__o = node._o
  6648.         libxml2mod.xmlSetNs(node__o, self._o)
  6649.  
  6650.     
  6651.     def setNsProp(self, node, name, value):
  6652.         if node is None:
  6653.             node__o = None
  6654.         else:
  6655.             node__o = node._o
  6656.         ret = libxml2mod.xmlSetNsProp(node__o, self._o, name, value)
  6657.         if ret is None:
  6658.             raise treeError('xmlSetNsProp() failed')
  6659.         ret is None
  6660.         _xmlNs__tmp = xmlAttr(_obj = ret)
  6661.         return _xmlNs__tmp
  6662.  
  6663.     
  6664.     def unsetNsProp(self, node, name):
  6665.         if node is None:
  6666.             node__o = None
  6667.         else:
  6668.             node__o = node._o
  6669.         ret = libxml2mod.xmlUnsetNsProp(node__o, self._o, name)
  6670.         return ret
  6671.  
  6672.     
  6673.     def xpathNodeSetFreeNs(self):
  6674.         libxml2mod.xmlXPathNodeSetFreeNs(self._o)
  6675.  
  6676.  
  6677.  
  6678. class inputBuffer(ioReadWrapper):
  6679.     
  6680.     def __init__(self, _obj = None):
  6681.         self._o = _obj
  6682.         ioReadWrapper.__init__(self, _obj = _obj)
  6683.  
  6684.     
  6685.     def __del__(self):
  6686.         if self._o != None:
  6687.             libxml2mod.xmlFreeParserInputBuffer(self._o)
  6688.         
  6689.         self._o = None
  6690.  
  6691.     
  6692.     def grow(self, len):
  6693.         ret = libxml2mod.xmlParserInputBufferGrow(self._o, len)
  6694.         return ret
  6695.  
  6696.     
  6697.     def push(self, len, buf):
  6698.         ret = libxml2mod.xmlParserInputBufferPush(self._o, len, buf)
  6699.         return ret
  6700.  
  6701.     
  6702.     def read(self, len):
  6703.         ret = libxml2mod.xmlParserInputBufferRead(self._o, len)
  6704.         return ret
  6705.  
  6706.     
  6707.     def Setup(self, reader, URL, encoding, options):
  6708.         if reader is None:
  6709.             reader__o = None
  6710.         else:
  6711.             reader__o = reader._o
  6712.         ret = libxml2mod.xmlTextReaderSetup(reader__o, self._o, URL, encoding, options)
  6713.         return ret
  6714.  
  6715.     
  6716.     def newTextReader(self, URI):
  6717.         ret = libxml2mod.xmlNewTextReader(self._o, URI)
  6718.         if ret is None:
  6719.             raise treeError('xmlNewTextReader() failed')
  6720.         ret is None
  6721.         _inputBuffer__tmp = xmlTextReader(_obj = ret)
  6722.         _inputBuffer__tmp.input = self
  6723.         return _inputBuffer__tmp
  6724.  
  6725.  
  6726.  
  6727. class relaxNgParserCtxt:
  6728.     
  6729.     def __init__(self, _obj = None):
  6730.         if _obj != None:
  6731.             self._o = _obj
  6732.             return None
  6733.         self._o = None
  6734.  
  6735.     
  6736.     def __del__(self):
  6737.         if self._o != None:
  6738.             libxml2mod.xmlRelaxNGFreeParserCtxt(self._o)
  6739.         
  6740.         self._o = None
  6741.  
  6742.     
  6743.     def relaxNGParse(self):
  6744.         ret = libxml2mod.xmlRelaxNGParse(self._o)
  6745.         if ret is None:
  6746.             raise parserError('xmlRelaxNGParse() failed')
  6747.         ret is None
  6748.         _relaxNgParserCtxt__tmp = relaxNgSchema(_obj = ret)
  6749.         return _relaxNgParserCtxt__tmp
  6750.  
  6751.     
  6752.     def relaxParserSetFlag(self, flags):
  6753.         ret = libxml2mod.xmlRelaxParserSetFlag(self._o, flags)
  6754.         return ret
  6755.  
  6756.  
  6757.  
  6758. class outputBuffer(ioWriteWrapper):
  6759.     
  6760.     def __init__(self, _obj = None):
  6761.         self._o = _obj
  6762.         ioWriteWrapper.__init__(self, _obj = _obj)
  6763.  
  6764.     
  6765.     def htmlDocContentDumpFormatOutput(self, cur, encoding, format):
  6766.         if cur is None:
  6767.             cur__o = None
  6768.         else:
  6769.             cur__o = cur._o
  6770.         libxml2mod.htmlDocContentDumpFormatOutput(self._o, cur__o, encoding, format)
  6771.  
  6772.     
  6773.     def htmlDocContentDumpOutput(self, cur, encoding):
  6774.         if cur is None:
  6775.             cur__o = None
  6776.         else:
  6777.             cur__o = cur._o
  6778.         libxml2mod.htmlDocContentDumpOutput(self._o, cur__o, encoding)
  6779.  
  6780.     
  6781.     def htmlNodeDumpFormatOutput(self, doc, cur, encoding, format):
  6782.         if doc is None:
  6783.             doc__o = None
  6784.         else:
  6785.             doc__o = doc._o
  6786.         if cur is None:
  6787.             cur__o = None
  6788.         else:
  6789.             cur__o = cur._o
  6790.         libxml2mod.htmlNodeDumpFormatOutput(self._o, doc__o, cur__o, encoding, format)
  6791.  
  6792.     
  6793.     def htmlNodeDumpOutput(self, doc, cur, encoding):
  6794.         if doc is None:
  6795.             doc__o = None
  6796.         else:
  6797.             doc__o = doc._o
  6798.         if cur is None:
  6799.             cur__o = None
  6800.         else:
  6801.             cur__o = cur._o
  6802.         libxml2mod.htmlNodeDumpOutput(self._o, doc__o, cur__o, encoding)
  6803.  
  6804.     
  6805.     def nodeDumpOutput(self, doc, cur, level, format, encoding):
  6806.         if doc is None:
  6807.             doc__o = None
  6808.         else:
  6809.             doc__o = doc._o
  6810.         if cur is None:
  6811.             cur__o = None
  6812.         else:
  6813.             cur__o = cur._o
  6814.         libxml2mod.xmlNodeDumpOutput(self._o, doc__o, cur__o, level, format, encoding)
  6815.  
  6816.     
  6817.     def saveFileTo(self, cur, encoding):
  6818.         if cur is None:
  6819.             cur__o = None
  6820.         else:
  6821.             cur__o = cur._o
  6822.         ret = libxml2mod.xmlSaveFileTo(self._o, cur__o, encoding)
  6823.         return ret
  6824.  
  6825.     
  6826.     def saveFormatFileTo(self, cur, encoding, format):
  6827.         if cur is None:
  6828.             cur__o = None
  6829.         else:
  6830.             cur__o = cur._o
  6831.         ret = libxml2mod.xmlSaveFormatFileTo(self._o, cur__o, encoding, format)
  6832.         return ret
  6833.  
  6834.     
  6835.     def write(self, len, buf):
  6836.         ret = libxml2mod.xmlOutputBufferWrite(self._o, len, buf)
  6837.         return ret
  6838.  
  6839.     
  6840.     def writeString(self, str):
  6841.         ret = libxml2mod.xmlOutputBufferWriteString(self._o, str)
  6842.         return ret
  6843.  
  6844.  
  6845.  
  6846. class SchemaParserCtxt:
  6847.     
  6848.     def __init__(self, _obj = None):
  6849.         if _obj != None:
  6850.             self._o = _obj
  6851.             return None
  6852.         self._o = None
  6853.  
  6854.     
  6855.     def __del__(self):
  6856.         if self._o != None:
  6857.             libxml2mod.xmlSchemaFreeParserCtxt(self._o)
  6858.         
  6859.         self._o = None
  6860.  
  6861.     
  6862.     def schemaParse(self):
  6863.         ret = libxml2mod.xmlSchemaParse(self._o)
  6864.         if ret is None:
  6865.             raise parserError('xmlSchemaParse() failed')
  6866.         ret is None
  6867.         _SchemaParserCtxt__tmp = Schema(_obj = ret)
  6868.         return _SchemaParserCtxt__tmp
  6869.  
  6870.  
  6871.  
  6872. class SchemaValidCtxt(SchemaValidCtxtCore):
  6873.     
  6874.     def __init__(self, _obj = None):
  6875.         self.schema = None
  6876.         self._o = _obj
  6877.         SchemaValidCtxtCore.__init__(self, _obj = _obj)
  6878.  
  6879.     
  6880.     def __del__(self):
  6881.         if self._o != None:
  6882.             libxml2mod.xmlSchemaFreeValidCtxt(self._o)
  6883.         
  6884.         self._o = None
  6885.  
  6886.     
  6887.     def SchemaValidateCtxt(self, reader, options):
  6888.         if reader is None:
  6889.             reader__o = None
  6890.         else:
  6891.             reader__o = reader._o
  6892.         ret = libxml2mod.xmlTextReaderSchemaValidateCtxt(reader__o, self._o, options)
  6893.         return ret
  6894.  
  6895.     
  6896.     def schemaIsValid(self):
  6897.         ret = libxml2mod.xmlSchemaIsValid(self._o)
  6898.         return ret
  6899.  
  6900.     
  6901.     def schemaSetValidOptions(self, options):
  6902.         ret = libxml2mod.xmlSchemaSetValidOptions(self._o, options)
  6903.         return ret
  6904.  
  6905.     
  6906.     def schemaValidCtxtGetOptions(self):
  6907.         ret = libxml2mod.xmlSchemaValidCtxtGetOptions(self._o)
  6908.         return ret
  6909.  
  6910.     
  6911.     def schemaValidCtxtGetParserCtxt(self):
  6912.         ret = libxml2mod.xmlSchemaValidCtxtGetParserCtxt(self._o)
  6913.         if ret is None:
  6914.             raise parserError('xmlSchemaValidCtxtGetParserCtxt() failed')
  6915.         ret is None
  6916.         _SchemaValidCtxt__tmp = parserCtxt(_obj = ret)
  6917.         return _SchemaValidCtxt__tmp
  6918.  
  6919.     
  6920.     def schemaValidateDoc(self, doc):
  6921.         if doc is None:
  6922.             doc__o = None
  6923.         else:
  6924.             doc__o = doc._o
  6925.         ret = libxml2mod.xmlSchemaValidateDoc(self._o, doc__o)
  6926.         return ret
  6927.  
  6928.     
  6929.     def schemaValidateFile(self, filename, options):
  6930.         ret = libxml2mod.xmlSchemaValidateFile(self._o, filename, options)
  6931.         return ret
  6932.  
  6933.     
  6934.     def schemaValidateOneElement(self, elem):
  6935.         if elem is None:
  6936.             elem__o = None
  6937.         else:
  6938.             elem__o = elem._o
  6939.         ret = libxml2mod.xmlSchemaValidateOneElement(self._o, elem__o)
  6940.         return ret
  6941.  
  6942.  
  6943.  
  6944. class xmlTextReaderLocator:
  6945.     
  6946.     def __init__(self, _obj = None):
  6947.         if _obj != None:
  6948.             self._o = _obj
  6949.             return None
  6950.         self._o = None
  6951.  
  6952.     
  6953.     def BaseURI(self):
  6954.         ret = libxml2mod.xmlTextReaderLocatorBaseURI(self._o)
  6955.         return ret
  6956.  
  6957.     
  6958.     def LineNumber(self):
  6959.         ret = libxml2mod.xmlTextReaderLocatorLineNumber(self._o)
  6960.         return ret
  6961.  
  6962.  
  6963.  
  6964. class URI:
  6965.     
  6966.     def __init__(self, _obj = None):
  6967.         if _obj != None:
  6968.             self._o = _obj
  6969.             return None
  6970.         self._o = None
  6971.  
  6972.     
  6973.     def __del__(self):
  6974.         if self._o != None:
  6975.             libxml2mod.xmlFreeURI(self._o)
  6976.         
  6977.         self._o = None
  6978.  
  6979.     
  6980.     def authority(self):
  6981.         ret = libxml2mod.xmlURIGetAuthority(self._o)
  6982.         return ret
  6983.  
  6984.     
  6985.     def fragment(self):
  6986.         ret = libxml2mod.xmlURIGetFragment(self._o)
  6987.         return ret
  6988.  
  6989.     
  6990.     def opaque(self):
  6991.         ret = libxml2mod.xmlURIGetOpaque(self._o)
  6992.         return ret
  6993.  
  6994.     
  6995.     def path(self):
  6996.         ret = libxml2mod.xmlURIGetPath(self._o)
  6997.         return ret
  6998.  
  6999.     
  7000.     def port(self):
  7001.         ret = libxml2mod.xmlURIGetPort(self._o)
  7002.         return ret
  7003.  
  7004.     
  7005.     def query(self):
  7006.         ret = libxml2mod.xmlURIGetQuery(self._o)
  7007.         return ret
  7008.  
  7009.     
  7010.     def queryRaw(self):
  7011.         ret = libxml2mod.xmlURIGetQueryRaw(self._o)
  7012.         return ret
  7013.  
  7014.     
  7015.     def scheme(self):
  7016.         ret = libxml2mod.xmlURIGetScheme(self._o)
  7017.         return ret
  7018.  
  7019.     
  7020.     def server(self):
  7021.         ret = libxml2mod.xmlURIGetServer(self._o)
  7022.         return ret
  7023.  
  7024.     
  7025.     def setAuthority(self, authority):
  7026.         libxml2mod.xmlURISetAuthority(self._o, authority)
  7027.  
  7028.     
  7029.     def setFragment(self, fragment):
  7030.         libxml2mod.xmlURISetFragment(self._o, fragment)
  7031.  
  7032.     
  7033.     def setOpaque(self, opaque):
  7034.         libxml2mod.xmlURISetOpaque(self._o, opaque)
  7035.  
  7036.     
  7037.     def setPath(self, path):
  7038.         libxml2mod.xmlURISetPath(self._o, path)
  7039.  
  7040.     
  7041.     def setPort(self, port):
  7042.         libxml2mod.xmlURISetPort(self._o, port)
  7043.  
  7044.     
  7045.     def setQuery(self, query):
  7046.         libxml2mod.xmlURISetQuery(self._o, query)
  7047.  
  7048.     
  7049.     def setQueryRaw(self, query_raw):
  7050.         libxml2mod.xmlURISetQueryRaw(self._o, query_raw)
  7051.  
  7052.     
  7053.     def setScheme(self, scheme):
  7054.         libxml2mod.xmlURISetScheme(self._o, scheme)
  7055.  
  7056.     
  7057.     def setServer(self, server):
  7058.         libxml2mod.xmlURISetServer(self._o, server)
  7059.  
  7060.     
  7061.     def setUser(self, user):
  7062.         libxml2mod.xmlURISetUser(self._o, user)
  7063.  
  7064.     
  7065.     def user(self):
  7066.         ret = libxml2mod.xmlURIGetUser(self._o)
  7067.         return ret
  7068.  
  7069.     
  7070.     def parseURIReference(self, str):
  7071.         ret = libxml2mod.xmlParseURIReference(self._o, str)
  7072.         return ret
  7073.  
  7074.     
  7075.     def printURI(self, stream):
  7076.         libxml2mod.xmlPrintURI(stream, self._o)
  7077.  
  7078.     
  7079.     def saveUri(self):
  7080.         ret = libxml2mod.xmlSaveUri(self._o)
  7081.         return ret
  7082.  
  7083.  
  7084. XLINK_SHOW_NONE = 0
  7085. XLINK_SHOW_NEW = 1
  7086. XLINK_SHOW_EMBED = 2
  7087. XLINK_SHOW_REPLACE = 3
  7088. XML_RELAXNGP_NONE = 0
  7089. XML_RELAXNGP_FREE_DOC = 1
  7090. XML_RELAXNGP_CRNG = 2
  7091. XML_BUFFER_ALLOC_DOUBLEIT = 1
  7092. XML_BUFFER_ALLOC_EXACT = 2
  7093. XML_BUFFER_ALLOC_IMMUTABLE = 3
  7094. XML_BUFFER_ALLOC_IO = 4
  7095. XML_PARSER_SEVERITY_VALIDITY_WARNING = 1
  7096. XML_PARSER_SEVERITY_VALIDITY_ERROR = 2
  7097. XML_PARSER_SEVERITY_WARNING = 3
  7098. XML_PARSER_SEVERITY_ERROR = 4
  7099. XML_ATTRIBUTE_NONE = 1
  7100. XML_ATTRIBUTE_REQUIRED = 2
  7101. XML_ATTRIBUTE_IMPLIED = 3
  7102. XML_ATTRIBUTE_FIXED = 4
  7103. XML_SCHEMAS_UNKNOWN = 0
  7104. XML_SCHEMAS_STRING = 1
  7105. XML_SCHEMAS_NORMSTRING = 2
  7106. XML_SCHEMAS_DECIMAL = 3
  7107. XML_SCHEMAS_TIME = 4
  7108. XML_SCHEMAS_GDAY = 5
  7109. XML_SCHEMAS_GMONTH = 6
  7110. XML_SCHEMAS_GMONTHDAY = 7
  7111. XML_SCHEMAS_GYEAR = 8
  7112. XML_SCHEMAS_GYEARMONTH = 9
  7113. XML_SCHEMAS_DATE = 10
  7114. XML_SCHEMAS_DATETIME = 11
  7115. XML_SCHEMAS_DURATION = 12
  7116. XML_SCHEMAS_FLOAT = 13
  7117. XML_SCHEMAS_DOUBLE = 14
  7118. XML_SCHEMAS_BOOLEAN = 15
  7119. XML_SCHEMAS_TOKEN = 16
  7120. XML_SCHEMAS_LANGUAGE = 17
  7121. XML_SCHEMAS_NMTOKEN = 18
  7122. XML_SCHEMAS_NMTOKENS = 19
  7123. XML_SCHEMAS_NAME = 20
  7124. XML_SCHEMAS_QNAME = 21
  7125. XML_SCHEMAS_NCNAME = 22
  7126. XML_SCHEMAS_ID = 23
  7127. XML_SCHEMAS_IDREF = 24
  7128. XML_SCHEMAS_IDREFS = 25
  7129. XML_SCHEMAS_ENTITY = 26
  7130. XML_SCHEMAS_ENTITIES = 27
  7131. XML_SCHEMAS_NOTATION = 28
  7132. XML_SCHEMAS_ANYURI = 29
  7133. XML_SCHEMAS_INTEGER = 30
  7134. XML_SCHEMAS_NPINTEGER = 31
  7135. XML_SCHEMAS_NINTEGER = 32
  7136. XML_SCHEMAS_NNINTEGER = 33
  7137. XML_SCHEMAS_PINTEGER = 34
  7138. XML_SCHEMAS_INT = 35
  7139. XML_SCHEMAS_UINT = 36
  7140. XML_SCHEMAS_LONG = 37
  7141. XML_SCHEMAS_ULONG = 38
  7142. XML_SCHEMAS_SHORT = 39
  7143. XML_SCHEMAS_USHORT = 40
  7144. XML_SCHEMAS_BYTE = 41
  7145. XML_SCHEMAS_UBYTE = 42
  7146. XML_SCHEMAS_HEXBINARY = 43
  7147. XML_SCHEMAS_BASE64BINARY = 44
  7148. XML_SCHEMAS_ANYTYPE = 45
  7149. XML_SCHEMAS_ANYSIMPLETYPE = 46
  7150. XML_PARSER_EOF = -1
  7151. XML_PARSER_START = 0
  7152. XML_PARSER_MISC = 1
  7153. XML_PARSER_PI = 2
  7154. XML_PARSER_DTD = 3
  7155. XML_PARSER_PROLOG = 4
  7156. XML_PARSER_COMMENT = 5
  7157. XML_PARSER_START_TAG = 6
  7158. XML_PARSER_CONTENT = 7
  7159. XML_PARSER_CDATA_SECTION = 8
  7160. XML_PARSER_END_TAG = 9
  7161. XML_PARSER_ENTITY_DECL = 10
  7162. XML_PARSER_ENTITY_VALUE = 11
  7163. XML_PARSER_ATTRIBUTE_VALUE = 12
  7164. XML_PARSER_SYSTEM_LITERAL = 13
  7165. XML_PARSER_EPILOG = 14
  7166. XML_PARSER_IGNORE = 15
  7167. XML_PARSER_PUBLIC_LITERAL = 16
  7168. XML_INTERNAL_GENERAL_ENTITY = 1
  7169. XML_EXTERNAL_GENERAL_PARSED_ENTITY = 2
  7170. XML_EXTERNAL_GENERAL_UNPARSED_ENTITY = 3
  7171. XML_INTERNAL_PARAMETER_ENTITY = 4
  7172. XML_EXTERNAL_PARAMETER_ENTITY = 5
  7173. XML_INTERNAL_PREDEFINED_ENTITY = 6
  7174. XML_SAVE_FORMAT = 1
  7175. XML_SAVE_NO_DECL = 2
  7176. XML_SAVE_NO_EMPTY = 4
  7177. XML_SAVE_NO_XHTML = 8
  7178. XML_SAVE_XHTML = 16
  7179. XML_SAVE_AS_XML = 32
  7180. XML_SAVE_AS_HTML = 64
  7181. XML_PATTERN_DEFAULT = 0
  7182. XML_PATTERN_XPATH = 1
  7183. XML_PATTERN_XSSEL = 2
  7184. XML_PATTERN_XSFIELD = 4
  7185. XML_ERR_OK = 0
  7186. XML_ERR_INTERNAL_ERROR = 1
  7187. XML_ERR_NO_MEMORY = 2
  7188. XML_ERR_DOCUMENT_START = 3
  7189. XML_ERR_DOCUMENT_EMPTY = 4
  7190. XML_ERR_DOCUMENT_END = 5
  7191. XML_ERR_INVALID_HEX_CHARREF = 6
  7192. XML_ERR_INVALID_DEC_CHARREF = 7
  7193. XML_ERR_INVALID_CHARREF = 8
  7194. XML_ERR_INVALID_CHAR = 9
  7195. XML_ERR_CHARREF_AT_EOF = 10
  7196. XML_ERR_CHARREF_IN_PROLOG = 11
  7197. XML_ERR_CHARREF_IN_EPILOG = 12
  7198. XML_ERR_CHARREF_IN_DTD = 13
  7199. XML_ERR_ENTITYREF_AT_EOF = 14
  7200. XML_ERR_ENTITYREF_IN_PROLOG = 15
  7201. XML_ERR_ENTITYREF_IN_EPILOG = 16
  7202. XML_ERR_ENTITYREF_IN_DTD = 17
  7203. XML_ERR_PEREF_AT_EOF = 18
  7204. XML_ERR_PEREF_IN_PROLOG = 19
  7205. XML_ERR_PEREF_IN_EPILOG = 20
  7206. XML_ERR_PEREF_IN_INT_SUBSET = 21
  7207. XML_ERR_ENTITYREF_NO_NAME = 22
  7208. XML_ERR_ENTITYREF_SEMICOL_MISSING = 23
  7209. XML_ERR_PEREF_NO_NAME = 24
  7210. XML_ERR_PEREF_SEMICOL_MISSING = 25
  7211. XML_ERR_UNDECLARED_ENTITY = 26
  7212. XML_WAR_UNDECLARED_ENTITY = 27
  7213. XML_ERR_UNPARSED_ENTITY = 28
  7214. XML_ERR_ENTITY_IS_EXTERNAL = 29
  7215. XML_ERR_ENTITY_IS_PARAMETER = 30
  7216. XML_ERR_UNKNOWN_ENCODING = 31
  7217. XML_ERR_UNSUPPORTED_ENCODING = 32
  7218. XML_ERR_STRING_NOT_STARTED = 33
  7219. XML_ERR_STRING_NOT_CLOSED = 34
  7220. XML_ERR_NS_DECL_ERROR = 35
  7221. XML_ERR_ENTITY_NOT_STARTED = 36
  7222. XML_ERR_ENTITY_NOT_FINISHED = 37
  7223. XML_ERR_LT_IN_ATTRIBUTE = 38
  7224. XML_ERR_ATTRIBUTE_NOT_STARTED = 39
  7225. XML_ERR_ATTRIBUTE_NOT_FINISHED = 40
  7226. XML_ERR_ATTRIBUTE_WITHOUT_VALUE = 41
  7227. XML_ERR_ATTRIBUTE_REDEFINED = 42
  7228. XML_ERR_LITERAL_NOT_STARTED = 43
  7229. XML_ERR_LITERAL_NOT_FINISHED = 44
  7230. XML_ERR_COMMENT_NOT_FINISHED = 45
  7231. XML_ERR_PI_NOT_STARTED = 46
  7232. XML_ERR_PI_NOT_FINISHED = 47
  7233. XML_ERR_NOTATION_NOT_STARTED = 48
  7234. XML_ERR_NOTATION_NOT_FINISHED = 49
  7235. XML_ERR_ATTLIST_NOT_STARTED = 50
  7236. XML_ERR_ATTLIST_NOT_FINISHED = 51
  7237. XML_ERR_MIXED_NOT_STARTED = 52
  7238. XML_ERR_MIXED_NOT_FINISHED = 53
  7239. XML_ERR_ELEMCONTENT_NOT_STARTED = 54
  7240. XML_ERR_ELEMCONTENT_NOT_FINISHED = 55
  7241. XML_ERR_XMLDECL_NOT_STARTED = 56
  7242. XML_ERR_XMLDECL_NOT_FINISHED = 57
  7243. XML_ERR_CONDSEC_NOT_STARTED = 58
  7244. XML_ERR_CONDSEC_NOT_FINISHED = 59
  7245. XML_ERR_EXT_SUBSET_NOT_FINISHED = 60
  7246. XML_ERR_DOCTYPE_NOT_FINISHED = 61
  7247. XML_ERR_MISPLACED_CDATA_END = 62
  7248. XML_ERR_CDATA_NOT_FINISHED = 63
  7249. XML_ERR_RESERVED_XML_NAME = 64
  7250. XML_ERR_SPACE_REQUIRED = 65
  7251. XML_ERR_SEPARATOR_REQUIRED = 66
  7252. XML_ERR_NMTOKEN_REQUIRED = 67
  7253. XML_ERR_NAME_REQUIRED = 68
  7254. XML_ERR_PCDATA_REQUIRED = 69
  7255. XML_ERR_URI_REQUIRED = 70
  7256. XML_ERR_PUBID_REQUIRED = 71
  7257. XML_ERR_LT_REQUIRED = 72
  7258. XML_ERR_GT_REQUIRED = 73
  7259. XML_ERR_LTSLASH_REQUIRED = 74
  7260. XML_ERR_EQUAL_REQUIRED = 75
  7261. XML_ERR_TAG_NAME_MISMATCH = 76
  7262. XML_ERR_TAG_NOT_FINISHED = 77
  7263. XML_ERR_STANDALONE_VALUE = 78
  7264. XML_ERR_ENCODING_NAME = 79
  7265. XML_ERR_HYPHEN_IN_COMMENT = 80
  7266. XML_ERR_INVALID_ENCODING = 81
  7267. XML_ERR_EXT_ENTITY_STANDALONE = 82
  7268. XML_ERR_CONDSEC_INVALID = 83
  7269. XML_ERR_VALUE_REQUIRED = 84
  7270. XML_ERR_NOT_WELL_BALANCED = 85
  7271. XML_ERR_EXTRA_CONTENT = 86
  7272. XML_ERR_ENTITY_CHAR_ERROR = 87
  7273. XML_ERR_ENTITY_PE_INTERNAL = 88
  7274. XML_ERR_ENTITY_LOOP = 89
  7275. XML_ERR_ENTITY_BOUNDARY = 90
  7276. XML_ERR_INVALID_URI = 91
  7277. XML_ERR_URI_FRAGMENT = 92
  7278. XML_WAR_CATALOG_PI = 93
  7279. XML_ERR_NO_DTD = 94
  7280. XML_ERR_CONDSEC_INVALID_KEYWORD = 95
  7281. XML_ERR_VERSION_MISSING = 96
  7282. XML_WAR_UNKNOWN_VERSION = 97
  7283. XML_WAR_LANG_VALUE = 98
  7284. XML_WAR_NS_URI = 99
  7285. XML_WAR_NS_URI_RELATIVE = 100
  7286. XML_ERR_MISSING_ENCODING = 101
  7287. XML_WAR_SPACE_VALUE = 102
  7288. XML_ERR_NOT_STANDALONE = 103
  7289. XML_ERR_ENTITY_PROCESSING = 104
  7290. XML_ERR_NOTATION_PROCESSING = 105
  7291. XML_WAR_NS_COLUMN = 106
  7292. XML_WAR_ENTITY_REDEFINED = 107
  7293. XML_ERR_UNKNOWN_VERSION = 108
  7294. XML_ERR_VERSION_MISMATCH = 109
  7295. XML_NS_ERR_XML_NAMESPACE = 200
  7296. XML_NS_ERR_UNDEFINED_NAMESPACE = 201
  7297. XML_NS_ERR_QNAME = 202
  7298. XML_NS_ERR_ATTRIBUTE_REDEFINED = 203
  7299. XML_NS_ERR_EMPTY = 204
  7300. XML_NS_ERR_COLON = 205
  7301. XML_DTD_ATTRIBUTE_DEFAULT = 500
  7302. XML_DTD_ATTRIBUTE_REDEFINED = 501
  7303. XML_DTD_ATTRIBUTE_VALUE = 502
  7304. XML_DTD_CONTENT_ERROR = 503
  7305. XML_DTD_CONTENT_MODEL = 504
  7306. XML_DTD_CONTENT_NOT_DETERMINIST = 505
  7307. XML_DTD_DIFFERENT_PREFIX = 506
  7308. XML_DTD_ELEM_DEFAULT_NAMESPACE = 507
  7309. XML_DTD_ELEM_NAMESPACE = 508
  7310. XML_DTD_ELEM_REDEFINED = 509
  7311. XML_DTD_EMPTY_NOTATION = 510
  7312. XML_DTD_ENTITY_TYPE = 511
  7313. XML_DTD_ID_FIXED = 512
  7314. XML_DTD_ID_REDEFINED = 513
  7315. XML_DTD_ID_SUBSET = 514
  7316. XML_DTD_INVALID_CHILD = 515
  7317. XML_DTD_INVALID_DEFAULT = 516
  7318. XML_DTD_LOAD_ERROR = 517
  7319. XML_DTD_MISSING_ATTRIBUTE = 518
  7320. XML_DTD_MIXED_CORRUPT = 519
  7321. XML_DTD_MULTIPLE_ID = 520
  7322. XML_DTD_NO_DOC = 521
  7323. XML_DTD_NO_DTD = 522
  7324. XML_DTD_NO_ELEM_NAME = 523
  7325. XML_DTD_NO_PREFIX = 524
  7326. XML_DTD_NO_ROOT = 525
  7327. XML_DTD_NOTATION_REDEFINED = 526
  7328. XML_DTD_NOTATION_VALUE = 527
  7329. XML_DTD_NOT_EMPTY = 528
  7330. XML_DTD_NOT_PCDATA = 529
  7331. XML_DTD_NOT_STANDALONE = 530
  7332. XML_DTD_ROOT_NAME = 531
  7333. XML_DTD_STANDALONE_WHITE_SPACE = 532
  7334. XML_DTD_UNKNOWN_ATTRIBUTE = 533
  7335. XML_DTD_UNKNOWN_ELEM = 534
  7336. XML_DTD_UNKNOWN_ENTITY = 535
  7337. XML_DTD_UNKNOWN_ID = 536
  7338. XML_DTD_UNKNOWN_NOTATION = 537
  7339. XML_DTD_STANDALONE_DEFAULTED = 538
  7340. XML_DTD_XMLID_VALUE = 539
  7341. XML_DTD_XMLID_TYPE = 540
  7342. XML_DTD_DUP_TOKEN = 541
  7343. XML_HTML_STRUCURE_ERROR = 800
  7344. XML_HTML_UNKNOWN_TAG = 801
  7345. XML_RNGP_ANYNAME_ATTR_ANCESTOR = 1000
  7346. XML_RNGP_ATTR_CONFLICT = 1001
  7347. XML_RNGP_ATTRIBUTE_CHILDREN = 1002
  7348. XML_RNGP_ATTRIBUTE_CONTENT = 1003
  7349. XML_RNGP_ATTRIBUTE_EMPTY = 1004
  7350. XML_RNGP_ATTRIBUTE_NOOP = 1005
  7351. XML_RNGP_CHOICE_CONTENT = 1006
  7352. XML_RNGP_CHOICE_EMPTY = 1007
  7353. XML_RNGP_CREATE_FAILURE = 1008
  7354. XML_RNGP_DATA_CONTENT = 1009
  7355. XML_RNGP_DEF_CHOICE_AND_INTERLEAVE = 1010
  7356. XML_RNGP_DEFINE_CREATE_FAILED = 1011
  7357. XML_RNGP_DEFINE_EMPTY = 1012
  7358. XML_RNGP_DEFINE_MISSING = 1013
  7359. XML_RNGP_DEFINE_NAME_MISSING = 1014
  7360. XML_RNGP_ELEM_CONTENT_EMPTY = 1015
  7361. XML_RNGP_ELEM_CONTENT_ERROR = 1016
  7362. XML_RNGP_ELEMENT_EMPTY = 1017
  7363. XML_RNGP_ELEMENT_CONTENT = 1018
  7364. XML_RNGP_ELEMENT_NAME = 1019
  7365. XML_RNGP_ELEMENT_NO_CONTENT = 1020
  7366. XML_RNGP_ELEM_TEXT_CONFLICT = 1021
  7367. XML_RNGP_EMPTY = 1022
  7368. XML_RNGP_EMPTY_CONSTRUCT = 1023
  7369. XML_RNGP_EMPTY_CONTENT = 1024
  7370. XML_RNGP_EMPTY_NOT_EMPTY = 1025
  7371. XML_RNGP_ERROR_TYPE_LIB = 1026
  7372. XML_RNGP_EXCEPT_EMPTY = 1027
  7373. XML_RNGP_EXCEPT_MISSING = 1028
  7374. XML_RNGP_EXCEPT_MULTIPLE = 1029
  7375. XML_RNGP_EXCEPT_NO_CONTENT = 1030
  7376. XML_RNGP_EXTERNALREF_EMTPY = 1031
  7377. XML_RNGP_EXTERNAL_REF_FAILURE = 1032
  7378. XML_RNGP_EXTERNALREF_RECURSE = 1033
  7379. XML_RNGP_FORBIDDEN_ATTRIBUTE = 1034
  7380. XML_RNGP_FOREIGN_ELEMENT = 1035
  7381. XML_RNGP_GRAMMAR_CONTENT = 1036
  7382. XML_RNGP_GRAMMAR_EMPTY = 1037
  7383. XML_RNGP_GRAMMAR_MISSING = 1038
  7384. XML_RNGP_GRAMMAR_NO_START = 1039
  7385. XML_RNGP_GROUP_ATTR_CONFLICT = 1040
  7386. XML_RNGP_HREF_ERROR = 1041
  7387. XML_RNGP_INCLUDE_EMPTY = 1042
  7388. XML_RNGP_INCLUDE_FAILURE = 1043
  7389. XML_RNGP_INCLUDE_RECURSE = 1044
  7390. XML_RNGP_INTERLEAVE_ADD = 1045
  7391. XML_RNGP_INTERLEAVE_CREATE_FAILED = 1046
  7392. XML_RNGP_INTERLEAVE_EMPTY = 1047
  7393. XML_RNGP_INTERLEAVE_NO_CONTENT = 1048
  7394. XML_RNGP_INVALID_DEFINE_NAME = 1049
  7395. XML_RNGP_INVALID_URI = 1050
  7396. XML_RNGP_INVALID_VALUE = 1051
  7397. XML_RNGP_MISSING_HREF = 1052
  7398. XML_RNGP_NAME_MISSING = 1053
  7399. XML_RNGP_NEED_COMBINE = 1054
  7400. XML_RNGP_NOTALLOWED_NOT_EMPTY = 1055
  7401. XML_RNGP_NSNAME_ATTR_ANCESTOR = 1056
  7402. XML_RNGP_NSNAME_NO_NS = 1057
  7403. XML_RNGP_PARAM_FORBIDDEN = 1058
  7404. XML_RNGP_PARAM_NAME_MISSING = 1059
  7405. XML_RNGP_PARENTREF_CREATE_FAILED = 1060
  7406. XML_RNGP_PARENTREF_NAME_INVALID = 1061
  7407. XML_RNGP_PARENTREF_NO_NAME = 1062
  7408. XML_RNGP_PARENTREF_NO_PARENT = 1063
  7409. XML_RNGP_PARENTREF_NOT_EMPTY = 1064
  7410. XML_RNGP_PARSE_ERROR = 1065
  7411. XML_RNGP_PAT_ANYNAME_EXCEPT_ANYNAME = 1066
  7412. XML_RNGP_PAT_ATTR_ATTR = 1067
  7413. XML_RNGP_PAT_ATTR_ELEM = 1068
  7414. XML_RNGP_PAT_DATA_EXCEPT_ATTR = 1069
  7415. XML_RNGP_PAT_DATA_EXCEPT_ELEM = 1070
  7416. XML_RNGP_PAT_DATA_EXCEPT_EMPTY = 1071
  7417. XML_RNGP_PAT_DATA_EXCEPT_GROUP = 1072
  7418. XML_RNGP_PAT_DATA_EXCEPT_INTERLEAVE = 1073
  7419. XML_RNGP_PAT_DATA_EXCEPT_LIST = 1074
  7420. XML_RNGP_PAT_DATA_EXCEPT_ONEMORE = 1075
  7421. XML_RNGP_PAT_DATA_EXCEPT_REF = 1076
  7422. XML_RNGP_PAT_DATA_EXCEPT_TEXT = 1077
  7423. XML_RNGP_PAT_LIST_ATTR = 1078
  7424. XML_RNGP_PAT_LIST_ELEM = 1079
  7425. XML_RNGP_PAT_LIST_INTERLEAVE = 1080
  7426. XML_RNGP_PAT_LIST_LIST = 1081
  7427. XML_RNGP_PAT_LIST_REF = 1082
  7428. XML_RNGP_PAT_LIST_TEXT = 1083
  7429. XML_RNGP_PAT_NSNAME_EXCEPT_ANYNAME = 1084
  7430. XML_RNGP_PAT_NSNAME_EXCEPT_NSNAME = 1085
  7431. XML_RNGP_PAT_ONEMORE_GROUP_ATTR = 1086
  7432. XML_RNGP_PAT_ONEMORE_INTERLEAVE_ATTR = 1087
  7433. XML_RNGP_PAT_START_ATTR = 1088
  7434. XML_RNGP_PAT_START_DATA = 1089
  7435. XML_RNGP_PAT_START_EMPTY = 1090
  7436. XML_RNGP_PAT_START_GROUP = 1091
  7437. XML_RNGP_PAT_START_INTERLEAVE = 1092
  7438. XML_RNGP_PAT_START_LIST = 1093
  7439. XML_RNGP_PAT_START_ONEMORE = 1094
  7440. XML_RNGP_PAT_START_TEXT = 1095
  7441. XML_RNGP_PAT_START_VALUE = 1096
  7442. XML_RNGP_PREFIX_UNDEFINED = 1097
  7443. XML_RNGP_REF_CREATE_FAILED = 1098
  7444. XML_RNGP_REF_CYCLE = 1099
  7445. XML_RNGP_REF_NAME_INVALID = 1100
  7446. XML_RNGP_REF_NO_DEF = 1101
  7447. XML_RNGP_REF_NO_NAME = 1102
  7448. XML_RNGP_REF_NOT_EMPTY = 1103
  7449. XML_RNGP_START_CHOICE_AND_INTERLEAVE = 1104
  7450. XML_RNGP_START_CONTENT = 1105
  7451. XML_RNGP_START_EMPTY = 1106
  7452. XML_RNGP_START_MISSING = 1107
  7453. XML_RNGP_TEXT_EXPECTED = 1108
  7454. XML_RNGP_TEXT_HAS_CHILD = 1109
  7455. XML_RNGP_TYPE_MISSING = 1110
  7456. XML_RNGP_TYPE_NOT_FOUND = 1111
  7457. XML_RNGP_TYPE_VALUE = 1112
  7458. XML_RNGP_UNKNOWN_ATTRIBUTE = 1113
  7459. XML_RNGP_UNKNOWN_COMBINE = 1114
  7460. XML_RNGP_UNKNOWN_CONSTRUCT = 1115
  7461. XML_RNGP_UNKNOWN_TYPE_LIB = 1116
  7462. XML_RNGP_URI_FRAGMENT = 1117
  7463. XML_RNGP_URI_NOT_ABSOLUTE = 1118
  7464. XML_RNGP_VALUE_EMPTY = 1119
  7465. XML_RNGP_VALUE_NO_CONTENT = 1120
  7466. XML_RNGP_XMLNS_NAME = 1121
  7467. XML_RNGP_XML_NS = 1122
  7468. XML_XPATH_EXPRESSION_OK = 1200
  7469. XML_XPATH_NUMBER_ERROR = 1201
  7470. XML_XPATH_UNFINISHED_LITERAL_ERROR = 1202
  7471. XML_XPATH_START_LITERAL_ERROR = 1203
  7472. XML_XPATH_VARIABLE_REF_ERROR = 1204
  7473. XML_XPATH_UNDEF_VARIABLE_ERROR = 1205
  7474. XML_XPATH_INVALID_PREDICATE_ERROR = 1206
  7475. XML_XPATH_EXPR_ERROR = 1207
  7476. XML_XPATH_UNCLOSED_ERROR = 1208
  7477. XML_XPATH_UNKNOWN_FUNC_ERROR = 1209
  7478. XML_XPATH_INVALID_OPERAND = 1210
  7479. XML_XPATH_INVALID_TYPE = 1211
  7480. XML_XPATH_INVALID_ARITY = 1212
  7481. XML_XPATH_INVALID_CTXT_SIZE = 1213
  7482. XML_XPATH_INVALID_CTXT_POSITION = 1214
  7483. XML_XPATH_MEMORY_ERROR = 1215
  7484. XML_XPTR_SYNTAX_ERROR = 1216
  7485. XML_XPTR_RESOURCE_ERROR = 1217
  7486. XML_XPTR_SUB_RESOURCE_ERROR = 1218
  7487. XML_XPATH_UNDEF_PREFIX_ERROR = 1219
  7488. XML_XPATH_ENCODING_ERROR = 1220
  7489. XML_XPATH_INVALID_CHAR_ERROR = 1221
  7490. XML_TREE_INVALID_HEX = 1300
  7491. XML_TREE_INVALID_DEC = 1301
  7492. XML_TREE_UNTERMINATED_ENTITY = 1302
  7493. XML_TREE_NOT_UTF8 = 1303
  7494. XML_SAVE_NOT_UTF8 = 1400
  7495. XML_SAVE_CHAR_INVALID = 1401
  7496. XML_SAVE_NO_DOCTYPE = 1402
  7497. XML_SAVE_UNKNOWN_ENCODING = 1403
  7498. XML_REGEXP_COMPILE_ERROR = 1450
  7499. XML_IO_UNKNOWN = 1500
  7500. XML_IO_EACCES = 1501
  7501. XML_IO_EAGAIN = 1502
  7502. XML_IO_EBADF = 1503
  7503. XML_IO_EBADMSG = 1504
  7504. XML_IO_EBUSY = 1505
  7505. XML_IO_ECANCELED = 1506
  7506. XML_IO_ECHILD = 1507
  7507. XML_IO_EDEADLK = 1508
  7508. XML_IO_EDOM = 1509
  7509. XML_IO_EEXIST = 1510
  7510. XML_IO_EFAULT = 1511
  7511. XML_IO_EFBIG = 1512
  7512. XML_IO_EINPROGRESS = 1513
  7513. XML_IO_EINTR = 1514
  7514. XML_IO_EINVAL = 1515
  7515. XML_IO_EIO = 1516
  7516. XML_IO_EISDIR = 1517
  7517. XML_IO_EMFILE = 1518
  7518. XML_IO_EMLINK = 1519
  7519. XML_IO_EMSGSIZE = 1520
  7520. XML_IO_ENAMETOOLONG = 1521
  7521. XML_IO_ENFILE = 1522
  7522. XML_IO_ENODEV = 1523
  7523. XML_IO_ENOENT = 1524
  7524. XML_IO_ENOEXEC = 1525
  7525. XML_IO_ENOLCK = 1526
  7526. XML_IO_ENOMEM = 1527
  7527. XML_IO_ENOSPC = 1528
  7528. XML_IO_ENOSYS = 1529
  7529. XML_IO_ENOTDIR = 1530
  7530. XML_IO_ENOTEMPTY = 1531
  7531. XML_IO_ENOTSUP = 1532
  7532. XML_IO_ENOTTY = 1533
  7533. XML_IO_ENXIO = 1534
  7534. XML_IO_EPERM = 1535
  7535. XML_IO_EPIPE = 1536
  7536. XML_IO_ERANGE = 1537
  7537. XML_IO_EROFS = 1538
  7538. XML_IO_ESPIPE = 1539
  7539. XML_IO_ESRCH = 1540
  7540. XML_IO_ETIMEDOUT = 1541
  7541. XML_IO_EXDEV = 1542
  7542. XML_IO_NETWORK_ATTEMPT = 1543
  7543. XML_IO_ENCODER = 1544
  7544. XML_IO_FLUSH = 1545
  7545. XML_IO_WRITE = 1546
  7546. XML_IO_NO_INPUT = 1547
  7547. XML_IO_BUFFER_FULL = 1548
  7548. XML_IO_LOAD_ERROR = 1549
  7549. XML_IO_ENOTSOCK = 1550
  7550. XML_IO_EISCONN = 1551
  7551. XML_IO_ECONNREFUSED = 1552
  7552. XML_IO_ENETUNREACH = 1553
  7553. XML_IO_EADDRINUSE = 1554
  7554. XML_IO_EALREADY = 1555
  7555. XML_IO_EAFNOSUPPORT = 1556
  7556. XML_XINCLUDE_RECURSION = 1600
  7557. XML_XINCLUDE_PARSE_VALUE = 1601
  7558. XML_XINCLUDE_ENTITY_DEF_MISMATCH = 1602
  7559. XML_XINCLUDE_NO_HREF = 1603
  7560. XML_XINCLUDE_NO_FALLBACK = 1604
  7561. XML_XINCLUDE_HREF_URI = 1605
  7562. XML_XINCLUDE_TEXT_FRAGMENT = 1606
  7563. XML_XINCLUDE_TEXT_DOCUMENT = 1607
  7564. XML_XINCLUDE_INVALID_CHAR = 1608
  7565. XML_XINCLUDE_BUILD_FAILED = 1609
  7566. XML_XINCLUDE_UNKNOWN_ENCODING = 1610
  7567. XML_XINCLUDE_MULTIPLE_ROOT = 1611
  7568. XML_XINCLUDE_XPTR_FAILED = 1612
  7569. XML_XINCLUDE_XPTR_RESULT = 1613
  7570. XML_XINCLUDE_INCLUDE_IN_INCLUDE = 1614
  7571. XML_XINCLUDE_FALLBACKS_IN_INCLUDE = 1615
  7572. XML_XINCLUDE_FALLBACK_NOT_IN_INCLUDE = 1616
  7573. XML_XINCLUDE_DEPRECATED_NS = 1617
  7574. XML_XINCLUDE_FRAGMENT_ID = 1618
  7575. XML_CATALOG_MISSING_ATTR = 1650
  7576. XML_CATALOG_ENTRY_BROKEN = 1651
  7577. XML_CATALOG_PREFER_VALUE = 1652
  7578. XML_CATALOG_NOT_CATALOG = 1653
  7579. XML_CATALOG_RECURSION = 1654
  7580. XML_SCHEMAP_PREFIX_UNDEFINED = 1700
  7581. XML_SCHEMAP_ATTRFORMDEFAULT_VALUE = 1701
  7582. XML_SCHEMAP_ATTRGRP_NONAME_NOREF = 1702
  7583. XML_SCHEMAP_ATTR_NONAME_NOREF = 1703
  7584. XML_SCHEMAP_COMPLEXTYPE_NONAME_NOREF = 1704
  7585. XML_SCHEMAP_ELEMFORMDEFAULT_VALUE = 1705
  7586. XML_SCHEMAP_ELEM_NONAME_NOREF = 1706
  7587. XML_SCHEMAP_EXTENSION_NO_BASE = 1707
  7588. XML_SCHEMAP_FACET_NO_VALUE = 1708
  7589. XML_SCHEMAP_FAILED_BUILD_IMPORT = 1709
  7590. XML_SCHEMAP_GROUP_NONAME_NOREF = 1710
  7591. XML_SCHEMAP_IMPORT_NAMESPACE_NOT_URI = 1711
  7592. XML_SCHEMAP_IMPORT_REDEFINE_NSNAME = 1712
  7593. XML_SCHEMAP_IMPORT_SCHEMA_NOT_URI = 1713
  7594. XML_SCHEMAP_INVALID_BOOLEAN = 1714
  7595. XML_SCHEMAP_INVALID_ENUM = 1715
  7596. XML_SCHEMAP_INVALID_FACET = 1716
  7597. XML_SCHEMAP_INVALID_FACET_VALUE = 1717
  7598. XML_SCHEMAP_INVALID_MAXOCCURS = 1718
  7599. XML_SCHEMAP_INVALID_MINOCCURS = 1719
  7600. XML_SCHEMAP_INVALID_REF_AND_SUBTYPE = 1720
  7601. XML_SCHEMAP_INVALID_WHITE_SPACE = 1721
  7602. XML_SCHEMAP_NOATTR_NOREF = 1722
  7603. XML_SCHEMAP_NOTATION_NO_NAME = 1723
  7604. XML_SCHEMAP_NOTYPE_NOREF = 1724
  7605. XML_SCHEMAP_REF_AND_SUBTYPE = 1725
  7606. XML_SCHEMAP_RESTRICTION_NONAME_NOREF = 1726
  7607. XML_SCHEMAP_SIMPLETYPE_NONAME = 1727
  7608. XML_SCHEMAP_TYPE_AND_SUBTYPE = 1728
  7609. XML_SCHEMAP_UNKNOWN_ALL_CHILD = 1729
  7610. XML_SCHEMAP_UNKNOWN_ANYATTRIBUTE_CHILD = 1730
  7611. XML_SCHEMAP_UNKNOWN_ATTR_CHILD = 1731
  7612. XML_SCHEMAP_UNKNOWN_ATTRGRP_CHILD = 1732
  7613. XML_SCHEMAP_UNKNOWN_ATTRIBUTE_GROUP = 1733
  7614. XML_SCHEMAP_UNKNOWN_BASE_TYPE = 1734
  7615. XML_SCHEMAP_UNKNOWN_CHOICE_CHILD = 1735
  7616. XML_SCHEMAP_UNKNOWN_COMPLEXCONTENT_CHILD = 1736
  7617. XML_SCHEMAP_UNKNOWN_COMPLEXTYPE_CHILD = 1737
  7618. XML_SCHEMAP_UNKNOWN_ELEM_CHILD = 1738
  7619. XML_SCHEMAP_UNKNOWN_EXTENSION_CHILD = 1739
  7620. XML_SCHEMAP_UNKNOWN_FACET_CHILD = 1740
  7621. XML_SCHEMAP_UNKNOWN_FACET_TYPE = 1741
  7622. XML_SCHEMAP_UNKNOWN_GROUP_CHILD = 1742
  7623. XML_SCHEMAP_UNKNOWN_IMPORT_CHILD = 1743
  7624. XML_SCHEMAP_UNKNOWN_LIST_CHILD = 1744
  7625. XML_SCHEMAP_UNKNOWN_NOTATION_CHILD = 1745
  7626. XML_SCHEMAP_UNKNOWN_PROCESSCONTENT_CHILD = 1746
  7627. XML_SCHEMAP_UNKNOWN_REF = 1747
  7628. XML_SCHEMAP_UNKNOWN_RESTRICTION_CHILD = 1748
  7629. XML_SCHEMAP_UNKNOWN_SCHEMAS_CHILD = 1749
  7630. XML_SCHEMAP_UNKNOWN_SEQUENCE_CHILD = 1750
  7631. XML_SCHEMAP_UNKNOWN_SIMPLECONTENT_CHILD = 1751
  7632. XML_SCHEMAP_UNKNOWN_SIMPLETYPE_CHILD = 1752
  7633. XML_SCHEMAP_UNKNOWN_TYPE = 1753
  7634. XML_SCHEMAP_UNKNOWN_UNION_CHILD = 1754
  7635. XML_SCHEMAP_ELEM_DEFAULT_FIXED = 1755
  7636. XML_SCHEMAP_REGEXP_INVALID = 1756
  7637. XML_SCHEMAP_FAILED_LOAD = 1757
  7638. XML_SCHEMAP_NOTHING_TO_PARSE = 1758
  7639. XML_SCHEMAP_NOROOT = 1759
  7640. XML_SCHEMAP_REDEFINED_GROUP = 1760
  7641. XML_SCHEMAP_REDEFINED_TYPE = 1761
  7642. XML_SCHEMAP_REDEFINED_ELEMENT = 1762
  7643. XML_SCHEMAP_REDEFINED_ATTRGROUP = 1763
  7644. XML_SCHEMAP_REDEFINED_ATTR = 1764
  7645. XML_SCHEMAP_REDEFINED_NOTATION = 1765
  7646. XML_SCHEMAP_FAILED_PARSE = 1766
  7647. XML_SCHEMAP_UNKNOWN_PREFIX = 1767
  7648. XML_SCHEMAP_DEF_AND_PREFIX = 1768
  7649. XML_SCHEMAP_UNKNOWN_INCLUDE_CHILD = 1769
  7650. XML_SCHEMAP_INCLUDE_SCHEMA_NOT_URI = 1770
  7651. XML_SCHEMAP_INCLUDE_SCHEMA_NO_URI = 1771
  7652. XML_SCHEMAP_NOT_SCHEMA = 1772
  7653. XML_SCHEMAP_UNKNOWN_MEMBER_TYPE = 1773
  7654. XML_SCHEMAP_INVALID_ATTR_USE = 1774
  7655. XML_SCHEMAP_RECURSIVE = 1775
  7656. XML_SCHEMAP_SUPERNUMEROUS_LIST_ITEM_TYPE = 1776
  7657. XML_SCHEMAP_INVALID_ATTR_COMBINATION = 1777
  7658. XML_SCHEMAP_INVALID_ATTR_INLINE_COMBINATION = 1778
  7659. XML_SCHEMAP_MISSING_SIMPLETYPE_CHILD = 1779
  7660. XML_SCHEMAP_INVALID_ATTR_NAME = 1780
  7661. XML_SCHEMAP_REF_AND_CONTENT = 1781
  7662. XML_SCHEMAP_CT_PROPS_CORRECT_1 = 1782
  7663. XML_SCHEMAP_CT_PROPS_CORRECT_2 = 1783
  7664. XML_SCHEMAP_CT_PROPS_CORRECT_3 = 1784
  7665. XML_SCHEMAP_CT_PROPS_CORRECT_4 = 1785
  7666. XML_SCHEMAP_CT_PROPS_CORRECT_5 = 1786
  7667. XML_SCHEMAP_DERIVATION_OK_RESTRICTION_1 = 1787
  7668. XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_1 = 1788
  7669. XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_2 = 1789
  7670. XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_2 = 1790
  7671. XML_SCHEMAP_DERIVATION_OK_RESTRICTION_3 = 1791
  7672. XML_SCHEMAP_WILDCARD_INVALID_NS_MEMBER = 1792
  7673. XML_SCHEMAP_INTERSECTION_NOT_EXPRESSIBLE = 1793
  7674. XML_SCHEMAP_UNION_NOT_EXPRESSIBLE = 1794
  7675. XML_SCHEMAP_SRC_IMPORT_3_1 = 1795
  7676. XML_SCHEMAP_SRC_IMPORT_3_2 = 1796
  7677. XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_1 = 1797
  7678. XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_2 = 1798
  7679. XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_3 = 1799
  7680. XML_SCHEMAP_COS_CT_EXTENDS_1_3 = 1800
  7681. XML_SCHEMAV_NOROOT = 1801
  7682. XML_SCHEMAV_UNDECLAREDELEM = 1802
  7683. XML_SCHEMAV_NOTTOPLEVEL = 1803
  7684. XML_SCHEMAV_MISSING = 1804
  7685. XML_SCHEMAV_WRONGELEM = 1805
  7686. XML_SCHEMAV_NOTYPE = 1806
  7687. XML_SCHEMAV_NOROLLBACK = 1807
  7688. XML_SCHEMAV_ISABSTRACT = 1808
  7689. XML_SCHEMAV_NOTEMPTY = 1809
  7690. XML_SCHEMAV_ELEMCONT = 1810
  7691. XML_SCHEMAV_HAVEDEFAULT = 1811
  7692. XML_SCHEMAV_NOTNILLABLE = 1812
  7693. XML_SCHEMAV_EXTRACONTENT = 1813
  7694. XML_SCHEMAV_INVALIDATTR = 1814
  7695. XML_SCHEMAV_INVALIDELEM = 1815
  7696. XML_SCHEMAV_NOTDETERMINIST = 1816
  7697. XML_SCHEMAV_CONSTRUCT = 1817
  7698. XML_SCHEMAV_INTERNAL = 1818
  7699. XML_SCHEMAV_NOTSIMPLE = 1819
  7700. XML_SCHEMAV_ATTRUNKNOWN = 1820
  7701. XML_SCHEMAV_ATTRINVALID = 1821
  7702. XML_SCHEMAV_VALUE = 1822
  7703. XML_SCHEMAV_FACET = 1823
  7704. XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_1 = 1824
  7705. XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_2 = 1825
  7706. XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_3 = 1826
  7707. XML_SCHEMAV_CVC_TYPE_3_1_1 = 1827
  7708. XML_SCHEMAV_CVC_TYPE_3_1_2 = 1828
  7709. XML_SCHEMAV_CVC_FACET_VALID = 1829
  7710. XML_SCHEMAV_CVC_LENGTH_VALID = 1830
  7711. XML_SCHEMAV_CVC_MINLENGTH_VALID = 1831
  7712. XML_SCHEMAV_CVC_MAXLENGTH_VALID = 1832
  7713. XML_SCHEMAV_CVC_MININCLUSIVE_VALID = 1833
  7714. XML_SCHEMAV_CVC_MAXINCLUSIVE_VALID = 1834
  7715. XML_SCHEMAV_CVC_MINEXCLUSIVE_VALID = 1835
  7716. XML_SCHEMAV_CVC_MAXEXCLUSIVE_VALID = 1836
  7717. XML_SCHEMAV_CVC_TOTALDIGITS_VALID = 1837
  7718. XML_SCHEMAV_CVC_FRACTIONDIGITS_VALID = 1838
  7719. XML_SCHEMAV_CVC_PATTERN_VALID = 1839
  7720. XML_SCHEMAV_CVC_ENUMERATION_VALID = 1840
  7721. XML_SCHEMAV_CVC_COMPLEX_TYPE_2_1 = 1841
  7722. XML_SCHEMAV_CVC_COMPLEX_TYPE_2_2 = 1842
  7723. XML_SCHEMAV_CVC_COMPLEX_TYPE_2_3 = 1843
  7724. XML_SCHEMAV_CVC_COMPLEX_TYPE_2_4 = 1844
  7725. XML_SCHEMAV_CVC_ELT_1 = 1845
  7726. XML_SCHEMAV_CVC_ELT_2 = 1846
  7727. XML_SCHEMAV_CVC_ELT_3_1 = 1847
  7728. XML_SCHEMAV_CVC_ELT_3_2_1 = 1848
  7729. XML_SCHEMAV_CVC_ELT_3_2_2 = 1849
  7730. XML_SCHEMAV_CVC_ELT_4_1 = 1850
  7731. XML_SCHEMAV_CVC_ELT_4_2 = 1851
  7732. XML_SCHEMAV_CVC_ELT_4_3 = 1852
  7733. XML_SCHEMAV_CVC_ELT_5_1_1 = 1853
  7734. XML_SCHEMAV_CVC_ELT_5_1_2 = 1854
  7735. XML_SCHEMAV_CVC_ELT_5_2_1 = 1855
  7736. XML_SCHEMAV_CVC_ELT_5_2_2_1 = 1856
  7737. XML_SCHEMAV_CVC_ELT_5_2_2_2_1 = 1857
  7738. XML_SCHEMAV_CVC_ELT_5_2_2_2_2 = 1858
  7739. XML_SCHEMAV_CVC_ELT_6 = 1859
  7740. XML_SCHEMAV_CVC_ELT_7 = 1860
  7741. XML_SCHEMAV_CVC_ATTRIBUTE_1 = 1861
  7742. XML_SCHEMAV_CVC_ATTRIBUTE_2 = 1862
  7743. XML_SCHEMAV_CVC_ATTRIBUTE_3 = 1863
  7744. XML_SCHEMAV_CVC_ATTRIBUTE_4 = 1864
  7745. XML_SCHEMAV_CVC_COMPLEX_TYPE_3_1 = 1865
  7746. XML_SCHEMAV_CVC_COMPLEX_TYPE_3_2_1 = 1866
  7747. XML_SCHEMAV_CVC_COMPLEX_TYPE_3_2_2 = 1867
  7748. XML_SCHEMAV_CVC_COMPLEX_TYPE_4 = 1868
  7749. XML_SCHEMAV_CVC_COMPLEX_TYPE_5_1 = 1869
  7750. XML_SCHEMAV_CVC_COMPLEX_TYPE_5_2 = 1870
  7751. XML_SCHEMAV_ELEMENT_CONTENT = 1871
  7752. XML_SCHEMAV_DOCUMENT_ELEMENT_MISSING = 1872
  7753. XML_SCHEMAV_CVC_COMPLEX_TYPE_1 = 1873
  7754. XML_SCHEMAV_CVC_AU = 1874
  7755. XML_SCHEMAV_CVC_TYPE_1 = 1875
  7756. XML_SCHEMAV_CVC_TYPE_2 = 1876
  7757. XML_SCHEMAV_CVC_IDC = 1877
  7758. XML_SCHEMAV_CVC_WILDCARD = 1878
  7759. XML_SCHEMAV_MISC = 1879
  7760. XML_XPTR_UNKNOWN_SCHEME = 1900
  7761. XML_XPTR_CHILDSEQ_START = 1901
  7762. XML_XPTR_EVAL_FAILED = 1902
  7763. XML_XPTR_EXTRA_OBJECTS = 1903
  7764. XML_C14N_CREATE_CTXT = 1950
  7765. XML_C14N_REQUIRES_UTF8 = 1951
  7766. XML_C14N_CREATE_STACK = 1952
  7767. XML_C14N_INVALID_NODE = 1953
  7768. XML_C14N_UNKNOW_NODE = 1954
  7769. XML_C14N_RELATIVE_NAMESPACE = 1955
  7770. XML_FTP_PASV_ANSWER = 2000
  7771. XML_FTP_EPSV_ANSWER = 2001
  7772. XML_FTP_ACCNT = 2002
  7773. XML_FTP_URL_SYNTAX = 2003
  7774. XML_HTTP_URL_SYNTAX = 2020
  7775. XML_HTTP_USE_IP = 2021
  7776. XML_HTTP_UNKNOWN_HOST = 2022
  7777. XML_SCHEMAP_SRC_SIMPLE_TYPE_1 = 3000
  7778. XML_SCHEMAP_SRC_SIMPLE_TYPE_2 = 3001
  7779. XML_SCHEMAP_SRC_SIMPLE_TYPE_3 = 3002
  7780. XML_SCHEMAP_SRC_SIMPLE_TYPE_4 = 3003
  7781. XML_SCHEMAP_SRC_RESOLVE = 3004
  7782. XML_SCHEMAP_SRC_RESTRICTION_BASE_OR_SIMPLETYPE = 3005
  7783. XML_SCHEMAP_SRC_LIST_ITEMTYPE_OR_SIMPLETYPE = 3006
  7784. XML_SCHEMAP_SRC_UNION_MEMBERTYPES_OR_SIMPLETYPES = 3007
  7785. XML_SCHEMAP_ST_PROPS_CORRECT_1 = 3008
  7786. XML_SCHEMAP_ST_PROPS_CORRECT_2 = 3009
  7787. XML_SCHEMAP_ST_PROPS_CORRECT_3 = 3010
  7788. XML_SCHEMAP_COS_ST_RESTRICTS_1_1 = 3011
  7789. XML_SCHEMAP_COS_ST_RESTRICTS_1_2 = 3012
  7790. XML_SCHEMAP_COS_ST_RESTRICTS_1_3_1 = 3013
  7791. XML_SCHEMAP_COS_ST_RESTRICTS_1_3_2 = 3014
  7792. XML_SCHEMAP_COS_ST_RESTRICTS_2_1 = 3015
  7793. XML_SCHEMAP_COS_ST_RESTRICTS_2_3_1_1 = 3016
  7794. XML_SCHEMAP_COS_ST_RESTRICTS_2_3_1_2 = 3017
  7795. XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_1 = 3018
  7796. XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_2 = 3019
  7797. XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_3 = 3020
  7798. XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_4 = 3021
  7799. XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_5 = 3022
  7800. XML_SCHEMAP_COS_ST_RESTRICTS_3_1 = 3023
  7801. XML_SCHEMAP_COS_ST_RESTRICTS_3_3_1 = 3024
  7802. XML_SCHEMAP_COS_ST_RESTRICTS_3_3_1_2 = 3025
  7803. XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_2 = 3026
  7804. XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_1 = 3027
  7805. XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_3 = 3028
  7806. XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_4 = 3029
  7807. XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_5 = 3030
  7808. XML_SCHEMAP_COS_ST_DERIVED_OK_2_1 = 3031
  7809. XML_SCHEMAP_COS_ST_DERIVED_OK_2_2 = 3032
  7810. XML_SCHEMAP_S4S_ELEM_NOT_ALLOWED = 3033
  7811. XML_SCHEMAP_S4S_ELEM_MISSING = 3034
  7812. XML_SCHEMAP_S4S_ATTR_NOT_ALLOWED = 3035
  7813. XML_SCHEMAP_S4S_ATTR_MISSING = 3036
  7814. XML_SCHEMAP_S4S_ATTR_INVALID_VALUE = 3037
  7815. XML_SCHEMAP_SRC_ELEMENT_1 = 3038
  7816. XML_SCHEMAP_SRC_ELEMENT_2_1 = 3039
  7817. XML_SCHEMAP_SRC_ELEMENT_2_2 = 3040
  7818. XML_SCHEMAP_SRC_ELEMENT_3 = 3041
  7819. XML_SCHEMAP_P_PROPS_CORRECT_1 = 3042
  7820. XML_SCHEMAP_P_PROPS_CORRECT_2_1 = 3043
  7821. XML_SCHEMAP_P_PROPS_CORRECT_2_2 = 3044
  7822. XML_SCHEMAP_E_PROPS_CORRECT_2 = 3045
  7823. XML_SCHEMAP_E_PROPS_CORRECT_3 = 3046
  7824. XML_SCHEMAP_E_PROPS_CORRECT_4 = 3047
  7825. XML_SCHEMAP_E_PROPS_CORRECT_5 = 3048
  7826. XML_SCHEMAP_E_PROPS_CORRECT_6 = 3049
  7827. XML_SCHEMAP_SRC_INCLUDE = 3050
  7828. XML_SCHEMAP_SRC_ATTRIBUTE_1 = 3051
  7829. XML_SCHEMAP_SRC_ATTRIBUTE_2 = 3052
  7830. XML_SCHEMAP_SRC_ATTRIBUTE_3_1 = 3053
  7831. XML_SCHEMAP_SRC_ATTRIBUTE_3_2 = 3054
  7832. XML_SCHEMAP_SRC_ATTRIBUTE_4 = 3055
  7833. XML_SCHEMAP_NO_XMLNS = 3056
  7834. XML_SCHEMAP_NO_XSI = 3057
  7835. XML_SCHEMAP_COS_VALID_DEFAULT_1 = 3058
  7836. XML_SCHEMAP_COS_VALID_DEFAULT_2_1 = 3059
  7837. XML_SCHEMAP_COS_VALID_DEFAULT_2_2_1 = 3060
  7838. XML_SCHEMAP_COS_VALID_DEFAULT_2_2_2 = 3061
  7839. XML_SCHEMAP_CVC_SIMPLE_TYPE = 3062
  7840. XML_SCHEMAP_COS_CT_EXTENDS_1_1 = 3063
  7841. XML_SCHEMAP_SRC_IMPORT_1_1 = 3064
  7842. XML_SCHEMAP_SRC_IMPORT_1_2 = 3065
  7843. XML_SCHEMAP_SRC_IMPORT_2 = 3066
  7844. XML_SCHEMAP_SRC_IMPORT_2_1 = 3067
  7845. XML_SCHEMAP_SRC_IMPORT_2_2 = 3068
  7846. XML_SCHEMAP_INTERNAL = 3069
  7847. XML_SCHEMAP_NOT_DETERMINISTIC = 3070
  7848. XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_1 = 3071
  7849. XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_2 = 3072
  7850. XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_3 = 3073
  7851. XML_SCHEMAP_MG_PROPS_CORRECT_1 = 3074
  7852. XML_SCHEMAP_MG_PROPS_CORRECT_2 = 3075
  7853. XML_SCHEMAP_SRC_CT_1 = 3076
  7854. XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_3 = 3077
  7855. XML_SCHEMAP_AU_PROPS_CORRECT_2 = 3078
  7856. XML_SCHEMAP_A_PROPS_CORRECT_2 = 3079
  7857. XML_SCHEMAP_C_PROPS_CORRECT = 3080
  7858. XML_SCHEMAP_SRC_REDEFINE = 3081
  7859. XML_SCHEMAP_SRC_IMPORT = 3082
  7860. XML_SCHEMAP_WARN_SKIP_SCHEMA = 3083
  7861. XML_SCHEMAP_WARN_UNLOCATED_SCHEMA = 3084
  7862. XML_SCHEMAP_WARN_ATTR_REDECL_PROH = 3085
  7863. XML_SCHEMAP_WARN_ATTR_POINTLESS_PROH = 3086
  7864. XML_SCHEMAP_AG_PROPS_CORRECT = 3087
  7865. XML_SCHEMAP_COS_CT_EXTENDS_1_2 = 3088
  7866. XML_SCHEMAP_AU_PROPS_CORRECT = 3089
  7867. XML_SCHEMAP_A_PROPS_CORRECT_3 = 3090
  7868. XML_SCHEMAP_COS_ALL_LIMITED = 3091
  7869. XML_SCHEMATRONV_ASSERT = 4000
  7870. XML_SCHEMATRONV_REPORT = 4001
  7871. XML_MODULE_OPEN = 4900
  7872. XML_MODULE_CLOSE = 4901
  7873. XML_CHECK_FOUND_ELEMENT = 5000
  7874. XML_CHECK_FOUND_ATTRIBUTE = 5001
  7875. XML_CHECK_FOUND_TEXT = 5002
  7876. XML_CHECK_FOUND_CDATA = 5003
  7877. XML_CHECK_FOUND_ENTITYREF = 5004
  7878. XML_CHECK_FOUND_ENTITY = 5005
  7879. XML_CHECK_FOUND_PI = 5006
  7880. XML_CHECK_FOUND_COMMENT = 5007
  7881. XML_CHECK_FOUND_DOCTYPE = 5008
  7882. XML_CHECK_FOUND_FRAGMENT = 5009
  7883. XML_CHECK_FOUND_NOTATION = 5010
  7884. XML_CHECK_UNKNOWN_NODE = 5011
  7885. XML_CHECK_ENTITY_TYPE = 5012
  7886. XML_CHECK_NO_PARENT = 5013
  7887. XML_CHECK_NO_DOC = 5014
  7888. XML_CHECK_NO_NAME = 5015
  7889. XML_CHECK_NO_ELEM = 5016
  7890. XML_CHECK_WRONG_DOC = 5017
  7891. XML_CHECK_NO_PREV = 5018
  7892. XML_CHECK_WRONG_PREV = 5019
  7893. XML_CHECK_NO_NEXT = 5020
  7894. XML_CHECK_WRONG_NEXT = 5021
  7895. XML_CHECK_NOT_DTD = 5022
  7896. XML_CHECK_NOT_ATTR = 5023
  7897. XML_CHECK_NOT_ATTR_DECL = 5024
  7898. XML_CHECK_NOT_ELEM_DECL = 5025
  7899. XML_CHECK_NOT_ENTITY_DECL = 5026
  7900. XML_CHECK_NOT_NS_DECL = 5027
  7901. XML_CHECK_NO_HREF = 5028
  7902. XML_CHECK_WRONG_PARENT = 5029
  7903. XML_CHECK_NS_SCOPE = 5030
  7904. XML_CHECK_NS_ANCESTOR = 5031
  7905. XML_CHECK_NOT_UTF8 = 5032
  7906. XML_CHECK_NO_DICT = 5033
  7907. XML_CHECK_NOT_NCNAME = 5034
  7908. XML_CHECK_OUTSIDE_DICT = 5035
  7909. XML_CHECK_WRONG_NAME = 5036
  7910. XML_CHECK_NAME_NOT_NULL = 5037
  7911. XML_I18N_NO_NAME = 6000
  7912. XML_I18N_NO_HANDLER = 6001
  7913. XML_I18N_EXCESS_HANDLER = 6002
  7914. XML_I18N_CONV_FAILED = 6003
  7915. XML_I18N_NO_OUTPUT = 6004
  7916. XML_CHECK_ = 6005
  7917. XML_CHECK_X = 6006
  7918. XML_EXP_EMPTY = 0
  7919. XML_EXP_FORBID = 1
  7920. XML_EXP_ATOM = 2
  7921. XML_EXP_SEQ = 3
  7922. XML_EXP_OR = 4
  7923. XML_EXP_COUNT = 5
  7924. XML_ELEMENT_CONTENT_PCDATA = 1
  7925. XML_ELEMENT_CONTENT_ELEMENT = 2
  7926. XML_ELEMENT_CONTENT_SEQ = 3
  7927. XML_ELEMENT_CONTENT_OR = 4
  7928. XML_PARSER_LOADDTD = 1
  7929. XML_PARSER_DEFAULTATTRS = 2
  7930. XML_PARSER_VALIDATE = 3
  7931. XML_PARSER_SUBST_ENTITIES = 4
  7932. XML_READER_TYPE_NONE = 0
  7933. XML_READER_TYPE_ELEMENT = 1
  7934. XML_READER_TYPE_ATTRIBUTE = 2
  7935. XML_READER_TYPE_TEXT = 3
  7936. XML_READER_TYPE_CDATA = 4
  7937. XML_READER_TYPE_ENTITY_REFERENCE = 5
  7938. XML_READER_TYPE_ENTITY = 6
  7939. XML_READER_TYPE_PROCESSING_INSTRUCTION = 7
  7940. XML_READER_TYPE_COMMENT = 8
  7941. XML_READER_TYPE_DOCUMENT = 9
  7942. XML_READER_TYPE_DOCUMENT_TYPE = 10
  7943. XML_READER_TYPE_DOCUMENT_FRAGMENT = 11
  7944. XML_READER_TYPE_NOTATION = 12
  7945. XML_READER_TYPE_WHITESPACE = 13
  7946. XML_READER_TYPE_SIGNIFICANT_WHITESPACE = 14
  7947. XML_READER_TYPE_END_ELEMENT = 15
  7948. XML_READER_TYPE_END_ENTITY = 16
  7949. XML_READER_TYPE_XML_DECLARATION = 17
  7950. XML_CATA_PREFER_NONE = 0
  7951. XML_CATA_PREFER_PUBLIC = 1
  7952. XML_CATA_PREFER_SYSTEM = 2
  7953. XML_ELEMENT_NODE = 1
  7954. XML_ATTRIBUTE_NODE = 2
  7955. XML_TEXT_NODE = 3
  7956. XML_CDATA_SECTION_NODE = 4
  7957. XML_ENTITY_REF_NODE = 5
  7958. XML_ENTITY_NODE = 6
  7959. XML_PI_NODE = 7
  7960. XML_COMMENT_NODE = 8
  7961. XML_DOCUMENT_NODE = 9
  7962. XML_DOCUMENT_TYPE_NODE = 10
  7963. XML_DOCUMENT_FRAG_NODE = 11
  7964. XML_NOTATION_NODE = 12
  7965. XML_HTML_DOCUMENT_NODE = 13
  7966. XML_DTD_NODE = 14
  7967. XML_ELEMENT_DECL = 15
  7968. XML_ATTRIBUTE_DECL = 16
  7969. XML_ENTITY_DECL = 17
  7970. XML_NAMESPACE_DECL = 18
  7971. XML_XINCLUDE_START = 19
  7972. XML_XINCLUDE_END = 20
  7973. XML_DOCB_DOCUMENT_NODE = 21
  7974. XLINK_ACTUATE_NONE = 0
  7975. XLINK_ACTUATE_AUTO = 1
  7976. XLINK_ACTUATE_ONREQUEST = 2
  7977. XML_WITH_THREAD = 1
  7978. XML_WITH_TREE = 2
  7979. XML_WITH_OUTPUT = 3
  7980. XML_WITH_PUSH = 4
  7981. XML_WITH_READER = 5
  7982. XML_WITH_PATTERN = 6
  7983. XML_WITH_WRITER = 7
  7984. XML_WITH_SAX1 = 8
  7985. XML_WITH_FTP = 9
  7986. XML_WITH_HTTP = 10
  7987. XML_WITH_VALID = 11
  7988. XML_WITH_HTML = 12
  7989. XML_WITH_LEGACY = 13
  7990. XML_WITH_C14N = 14
  7991. XML_WITH_CATALOG = 15
  7992. XML_WITH_XPATH = 16
  7993. XML_WITH_XPTR = 17
  7994. XML_WITH_XINCLUDE = 18
  7995. XML_WITH_ICONV = 19
  7996. XML_WITH_ISO8859X = 20
  7997. XML_WITH_UNICODE = 21
  7998. XML_WITH_REGEXP = 22
  7999. XML_WITH_AUTOMATA = 23
  8000. XML_WITH_EXPR = 24
  8001. XML_WITH_SCHEMAS = 25
  8002. XML_WITH_SCHEMATRON = 26
  8003. XML_WITH_MODULES = 27
  8004. XML_WITH_DEBUG = 28
  8005. XML_WITH_DEBUG_MEM = 29
  8006. XML_WITH_DEBUG_RUN = 30
  8007. XML_WITH_ZLIB = 31
  8008. XML_WITH_NONE = 99999
  8009. XML_ELEMENT_CONTENT_ONCE = 1
  8010. XML_ELEMENT_CONTENT_OPT = 2
  8011. XML_ELEMENT_CONTENT_MULT = 3
  8012. XML_ELEMENT_CONTENT_PLUS = 4
  8013. XPATH_EXPRESSION_OK = 0
  8014. XPATH_NUMBER_ERROR = 1
  8015. XPATH_UNFINISHED_LITERAL_ERROR = 2
  8016. XPATH_START_LITERAL_ERROR = 3
  8017. XPATH_VARIABLE_REF_ERROR = 4
  8018. XPATH_UNDEF_VARIABLE_ERROR = 5
  8019. XPATH_INVALID_PREDICATE_ERROR = 6
  8020. XPATH_EXPR_ERROR = 7
  8021. XPATH_UNCLOSED_ERROR = 8
  8022. XPATH_UNKNOWN_FUNC_ERROR = 9
  8023. XPATH_INVALID_OPERAND = 10
  8024. XPATH_INVALID_TYPE = 11
  8025. XPATH_INVALID_ARITY = 12
  8026. XPATH_INVALID_CTXT_SIZE = 13
  8027. XPATH_INVALID_CTXT_POSITION = 14
  8028. XPATH_MEMORY_ERROR = 15
  8029. XPTR_SYNTAX_ERROR = 16
  8030. XPTR_RESOURCE_ERROR = 17
  8031. XPTR_SUB_RESOURCE_ERROR = 18
  8032. XPATH_UNDEF_PREFIX_ERROR = 19
  8033. XPATH_ENCODING_ERROR = 20
  8034. XPATH_INVALID_CHAR_ERROR = 21
  8035. XPATH_INVALID_CTXT = 22
  8036. XML_TEXTREADER_MODE_INITIAL = 0
  8037. XML_TEXTREADER_MODE_INTERACTIVE = 1
  8038. XML_TEXTREADER_MODE_ERROR = 2
  8039. XML_TEXTREADER_MODE_EOF = 3
  8040. XML_TEXTREADER_MODE_CLOSED = 4
  8041. XML_TEXTREADER_MODE_READING = 5
  8042. XML_ERR_NONE = 0
  8043. XML_ERR_WARNING = 1
  8044. XML_ERR_ERROR = 2
  8045. XML_ERR_FATAL = 3
  8046. XML_CHAR_ENCODING_ERROR = -1
  8047. XML_CHAR_ENCODING_NONE = 0
  8048. XML_CHAR_ENCODING_UTF8 = 1
  8049. XML_CHAR_ENCODING_UTF16LE = 2
  8050. XML_CHAR_ENCODING_UTF16BE = 3
  8051. XML_CHAR_ENCODING_UCS4LE = 4
  8052. XML_CHAR_ENCODING_UCS4BE = 5
  8053. XML_CHAR_ENCODING_EBCDIC = 6
  8054. XML_CHAR_ENCODING_UCS4_2143 = 7
  8055. XML_CHAR_ENCODING_UCS4_3412 = 8
  8056. XML_CHAR_ENCODING_UCS2 = 9
  8057. XML_CHAR_ENCODING_8859_1 = 10
  8058. XML_CHAR_ENCODING_8859_2 = 11
  8059. XML_CHAR_ENCODING_8859_3 = 12
  8060. XML_CHAR_ENCODING_8859_4 = 13
  8061. XML_CHAR_ENCODING_8859_5 = 14
  8062. XML_CHAR_ENCODING_8859_6 = 15
  8063. XML_CHAR_ENCODING_8859_7 = 16
  8064. XML_CHAR_ENCODING_8859_8 = 17
  8065. XML_CHAR_ENCODING_8859_9 = 18
  8066. XML_CHAR_ENCODING_2022_JP = 19
  8067. XML_CHAR_ENCODING_SHIFT_JIS = 20
  8068. XML_CHAR_ENCODING_EUC_JP = 21
  8069. XML_CHAR_ENCODING_ASCII = 22
  8070. XML_FROM_NONE = 0
  8071. XML_FROM_PARSER = 1
  8072. XML_FROM_TREE = 2
  8073. XML_FROM_NAMESPACE = 3
  8074. XML_FROM_DTD = 4
  8075. XML_FROM_HTML = 5
  8076. XML_FROM_MEMORY = 6
  8077. XML_FROM_OUTPUT = 7
  8078. XML_FROM_IO = 8
  8079. XML_FROM_FTP = 9
  8080. XML_FROM_HTTP = 10
  8081. XML_FROM_XINCLUDE = 11
  8082. XML_FROM_XPATH = 12
  8083. XML_FROM_XPOINTER = 13
  8084. XML_FROM_REGEXP = 14
  8085. XML_FROM_DATATYPE = 15
  8086. XML_FROM_SCHEMASP = 16
  8087. XML_FROM_SCHEMASV = 17
  8088. XML_FROM_RELAXNGP = 18
  8089. XML_FROM_RELAXNGV = 19
  8090. XML_FROM_CATALOG = 20
  8091. XML_FROM_C14N = 21
  8092. XML_FROM_XSLT = 22
  8093. XML_FROM_VALID = 23
  8094. XML_FROM_CHECK = 24
  8095. XML_FROM_WRITER = 25
  8096. XML_FROM_MODULE = 26
  8097. XML_FROM_I18N = 27
  8098. XML_FROM_SCHEMATRONV = 28
  8099. HTML_NA = 0
  8100. HTML_INVALID = 1
  8101. HTML_DEPRECATED = 2
  8102. HTML_VALID = 4
  8103. HTML_REQUIRED = 12
  8104. XML_SCHEMA_VAL_VC_I_CREATE = 1
  8105. XML_SCHEMA_WHITESPACE_UNKNOWN = 0
  8106. XML_SCHEMA_WHITESPACE_PRESERVE = 1
  8107. XML_SCHEMA_WHITESPACE_REPLACE = 2
  8108. XML_SCHEMA_WHITESPACE_COLLAPSE = 3
  8109. HTML_PARSE_RECOVER = 1
  8110. HTML_PARSE_NOERROR = 32
  8111. HTML_PARSE_NOWARNING = 64
  8112. HTML_PARSE_PEDANTIC = 128
  8113. HTML_PARSE_NOBLANKS = 256
  8114. HTML_PARSE_NONET = 2048
  8115. HTML_PARSE_NOIMPLIED = 8192
  8116. HTML_PARSE_COMPACT = 65536
  8117. XML_RELAXNG_OK = 0
  8118. XML_RELAXNG_ERR_MEMORY = 1
  8119. XML_RELAXNG_ERR_TYPE = 2
  8120. XML_RELAXNG_ERR_TYPEVAL = 3
  8121. XML_RELAXNG_ERR_DUPID = 4
  8122. XML_RELAXNG_ERR_TYPECMP = 5
  8123. XML_RELAXNG_ERR_NOSTATE = 6
  8124. XML_RELAXNG_ERR_NODEFINE = 7
  8125. XML_RELAXNG_ERR_LISTEXTRA = 8
  8126. XML_RELAXNG_ERR_LISTEMPTY = 9
  8127. XML_RELAXNG_ERR_INTERNODATA = 10
  8128. XML_RELAXNG_ERR_INTERSEQ = 11
  8129. XML_RELAXNG_ERR_INTEREXTRA = 12
  8130. XML_RELAXNG_ERR_ELEMNAME = 13
  8131. XML_RELAXNG_ERR_ATTRNAME = 14
  8132. XML_RELAXNG_ERR_ELEMNONS = 15
  8133. XML_RELAXNG_ERR_ATTRNONS = 16
  8134. XML_RELAXNG_ERR_ELEMWRONGNS = 17
  8135. XML_RELAXNG_ERR_ATTRWRONGNS = 18
  8136. XML_RELAXNG_ERR_ELEMEXTRANS = 19
  8137. XML_RELAXNG_ERR_ATTREXTRANS = 20
  8138. XML_RELAXNG_ERR_ELEMNOTEMPTY = 21
  8139. XML_RELAXNG_ERR_NOELEM = 22
  8140. XML_RELAXNG_ERR_NOTELEM = 23
  8141. XML_RELAXNG_ERR_ATTRVALID = 24
  8142. XML_RELAXNG_ERR_CONTENTVALID = 25
  8143. XML_RELAXNG_ERR_EXTRACONTENT = 26
  8144. XML_RELAXNG_ERR_INVALIDATTR = 27
  8145. XML_RELAXNG_ERR_DATAELEM = 28
  8146. XML_RELAXNG_ERR_VALELEM = 29
  8147. XML_RELAXNG_ERR_LISTELEM = 30
  8148. XML_RELAXNG_ERR_DATATYPE = 31
  8149. XML_RELAXNG_ERR_VALUE = 32
  8150. XML_RELAXNG_ERR_LIST = 33
  8151. XML_RELAXNG_ERR_NOGRAMMAR = 34
  8152. XML_RELAXNG_ERR_EXTRADATA = 35
  8153. XML_RELAXNG_ERR_LACKDATA = 36
  8154. XML_RELAXNG_ERR_INTERNAL = 37
  8155. XML_RELAXNG_ERR_ELEMWRONG = 38
  8156. XML_RELAXNG_ERR_TEXTWRONG = 39
  8157. XML_CATA_ALLOW_NONE = 0
  8158. XML_CATA_ALLOW_GLOBAL = 1
  8159. XML_CATA_ALLOW_DOCUMENT = 2
  8160. XML_CATA_ALLOW_ALL = 3
  8161. XML_ATTRIBUTE_CDATA = 1
  8162. XML_ATTRIBUTE_ID = 2
  8163. XML_ATTRIBUTE_IDREF = 3
  8164. XML_ATTRIBUTE_IDREFS = 4
  8165. XML_ATTRIBUTE_ENTITY = 5
  8166. XML_ATTRIBUTE_ENTITIES = 6
  8167. XML_ATTRIBUTE_NMTOKEN = 7
  8168. XML_ATTRIBUTE_NMTOKENS = 8
  8169. XML_ATTRIBUTE_ENUMERATION = 9
  8170. XML_ATTRIBUTE_NOTATION = 10
  8171. XML_SCHEMATRON_OUT_QUIET = 1
  8172. XML_SCHEMATRON_OUT_TEXT = 2
  8173. XML_SCHEMATRON_OUT_XML = 4
  8174. XML_SCHEMATRON_OUT_ERROR = 8
  8175. XML_SCHEMATRON_OUT_FILE = 256
  8176. XML_SCHEMATRON_OUT_BUFFER = 512
  8177. XML_SCHEMATRON_OUT_IO = 1024
  8178. XML_SCHEMA_CONTENT_UNKNOWN = 0
  8179. XML_SCHEMA_CONTENT_EMPTY = 1
  8180. XML_SCHEMA_CONTENT_ELEMENTS = 2
  8181. XML_SCHEMA_CONTENT_MIXED = 3
  8182. XML_SCHEMA_CONTENT_SIMPLE = 4
  8183. XML_SCHEMA_CONTENT_MIXED_OR_ELEMENTS = 5
  8184. XML_SCHEMA_CONTENT_BASIC = 6
  8185. XML_SCHEMA_CONTENT_ANY = 7
  8186. XML_SCHEMA_TYPE_BASIC = 1
  8187. XML_SCHEMA_TYPE_ANY = 2
  8188. XML_SCHEMA_TYPE_FACET = 3
  8189. XML_SCHEMA_TYPE_SIMPLE = 4
  8190. XML_SCHEMA_TYPE_COMPLEX = 5
  8191. XML_SCHEMA_TYPE_SEQUENCE = 6
  8192. XML_SCHEMA_TYPE_CHOICE = 7
  8193. XML_SCHEMA_TYPE_ALL = 8
  8194. XML_SCHEMA_TYPE_SIMPLE_CONTENT = 9
  8195. XML_SCHEMA_TYPE_COMPLEX_CONTENT = 10
  8196. XML_SCHEMA_TYPE_UR = 11
  8197. XML_SCHEMA_TYPE_RESTRICTION = 12
  8198. XML_SCHEMA_TYPE_EXTENSION = 13
  8199. XML_SCHEMA_TYPE_ELEMENT = 14
  8200. XML_SCHEMA_TYPE_ATTRIBUTE = 15
  8201. XML_SCHEMA_TYPE_ATTRIBUTEGROUP = 16
  8202. XML_SCHEMA_TYPE_GROUP = 17
  8203. XML_SCHEMA_TYPE_NOTATION = 18
  8204. XML_SCHEMA_TYPE_LIST = 19
  8205. XML_SCHEMA_TYPE_UNION = 20
  8206. XML_SCHEMA_TYPE_ANY_ATTRIBUTE = 21
  8207. XML_SCHEMA_TYPE_IDC_UNIQUE = 22
  8208. XML_SCHEMA_TYPE_IDC_KEY = 23
  8209. XML_SCHEMA_TYPE_IDC_KEYREF = 24
  8210. XML_SCHEMA_TYPE_PARTICLE = 25
  8211. XML_SCHEMA_TYPE_ATTRIBUTE_USE = 26
  8212. XML_SCHEMA_FACET_MININCLUSIVE = 1000
  8213. XML_SCHEMA_FACET_MINEXCLUSIVE = 1001
  8214. XML_SCHEMA_FACET_MAXINCLUSIVE = 1002
  8215. XML_SCHEMA_FACET_MAXEXCLUSIVE = 1003
  8216. XML_SCHEMA_FACET_TOTALDIGITS = 1004
  8217. XML_SCHEMA_FACET_FRACTIONDIGITS = 1005
  8218. XML_SCHEMA_FACET_PATTERN = 1006
  8219. XML_SCHEMA_FACET_ENUMERATION = 1007
  8220. XML_SCHEMA_FACET_WHITESPACE = 1008
  8221. XML_SCHEMA_FACET_LENGTH = 1009
  8222. XML_SCHEMA_FACET_MAXLENGTH = 1010
  8223. XML_SCHEMA_FACET_MINLENGTH = 1011
  8224. XML_SCHEMA_EXTRA_QNAMEREF = 2000
  8225. XML_SCHEMA_EXTRA_ATTR_USE_PROHIB = 2001
  8226. XML_MODULE_LAZY = 1
  8227. XML_MODULE_LOCAL = 2
  8228. XML_PARSE_UNKNOWN = 0
  8229. XML_PARSE_DOM = 1
  8230. XML_PARSE_SAX = 2
  8231. XML_PARSE_PUSH_DOM = 3
  8232. XML_PARSE_PUSH_SAX = 4
  8233. XML_PARSE_READER = 5
  8234. XML_C14N_1_0 = 0
  8235. XML_C14N_EXCLUSIVE_1_0 = 1
  8236. XML_C14N_1_1 = 2
  8237. XML_PARSE_RECOVER = 1
  8238. XML_PARSE_NOENT = 2
  8239. XML_PARSE_DTDLOAD = 4
  8240. XML_PARSE_DTDATTR = 8
  8241. XML_PARSE_DTDVALID = 16
  8242. XML_PARSE_NOERROR = 32
  8243. XML_PARSE_NOWARNING = 64
  8244. XML_PARSE_PEDANTIC = 128
  8245. XML_PARSE_NOBLANKS = 256
  8246. XML_PARSE_SAX1 = 512
  8247. XML_PARSE_XINCLUDE = 1024
  8248. XML_PARSE_NONET = 2048
  8249. XML_PARSE_NODICT = 4096
  8250. XML_PARSE_NSCLEAN = 8192
  8251. XML_PARSE_NOCDATA = 16384
  8252. XML_PARSE_NOXINCNODE = 32768
  8253. XML_PARSE_COMPACT = 65536
  8254. XML_PARSE_OLD10 = 131072
  8255. XML_PARSE_NOBASEFIX = 262144
  8256. XML_PARSE_HUGE = 524288
  8257. XML_PARSE_OLDSAX = 1048576
  8258. XML_ELEMENT_TYPE_UNDEFINED = 0
  8259. XML_ELEMENT_TYPE_EMPTY = 1
  8260. XML_ELEMENT_TYPE_ANY = 2
  8261. XML_ELEMENT_TYPE_MIXED = 3
  8262. XML_ELEMENT_TYPE_ELEMENT = 4
  8263. XML_DOC_WELLFORMED = 1
  8264. XML_DOC_NSVALID = 2
  8265. XML_DOC_OLD10 = 4
  8266. XML_DOC_DTDVALID = 8
  8267. XML_DOC_XINCLUDE = 16
  8268. XML_DOC_USERBUILT = 32
  8269. XML_DOC_INTERNAL = 64
  8270. XML_DOC_HTML = 128
  8271. XLINK_TYPE_NONE = 0
  8272. XLINK_TYPE_SIMPLE = 1
  8273. XLINK_TYPE_EXTENDED = 2
  8274. XLINK_TYPE_EXTENDED_SET = 3
  8275. XPATH_UNDEFINED = 0
  8276. XPATH_NODESET = 1
  8277. XPATH_BOOLEAN = 2
  8278. XPATH_NUMBER = 3
  8279. XPATH_STRING = 4
  8280. XPATH_POINT = 5
  8281. XPATH_RANGE = 6
  8282. XPATH_LOCATIONSET = 7
  8283. XPATH_USERS = 8
  8284. XPATH_XSLT_TREE = 9
  8285. XML_SCHEMAS_ERR_OK = 0
  8286. XML_SCHEMAS_ERR_NOROOT = 1
  8287. XML_SCHEMAS_ERR_UNDECLAREDELEM = 2
  8288. XML_SCHEMAS_ERR_NOTTOPLEVEL = 3
  8289. XML_SCHEMAS_ERR_MISSING = 4
  8290. XML_SCHEMAS_ERR_WRONGELEM = 5
  8291. XML_SCHEMAS_ERR_NOTYPE = 6
  8292. XML_SCHEMAS_ERR_NOROLLBACK = 7
  8293. XML_SCHEMAS_ERR_ISABSTRACT = 8
  8294. XML_SCHEMAS_ERR_NOTEMPTY = 9
  8295. XML_SCHEMAS_ERR_ELEMCONT = 10
  8296. XML_SCHEMAS_ERR_HAVEDEFAULT = 11
  8297. XML_SCHEMAS_ERR_NOTNILLABLE = 12
  8298. XML_SCHEMAS_ERR_EXTRACONTENT = 13
  8299. XML_SCHEMAS_ERR_INVALIDATTR = 14
  8300. XML_SCHEMAS_ERR_INVALIDELEM = 15
  8301. XML_SCHEMAS_ERR_NOTDETERMINIST = 16
  8302. XML_SCHEMAS_ERR_CONSTRUCT = 17
  8303. XML_SCHEMAS_ERR_INTERNAL = 18
  8304. XML_SCHEMAS_ERR_NOTSIMPLE = 19
  8305. XML_SCHEMAS_ERR_ATTRUNKNOWN = 20
  8306. XML_SCHEMAS_ERR_ATTRINVALID = 21
  8307. XML_SCHEMAS_ERR_VALUE = 22
  8308. XML_SCHEMAS_ERR_FACET = 23
  8309. XML_SCHEMAS_ERR_ = 24
  8310. XML_SCHEMAS_ERR_XXX = 25
  8311.