Code stringlengths 103 85.9k | Summary listlengths 0 94 |
|---|---|
Please provide a description of the function:def relaxNGValidatePopElement(self, ctxt, elem):
if ctxt is None: ctxt__o = None
else: ctxt__o = ctxt._o
if elem is None: elem__o = None
else: elem__o = elem._o
ret = libxml2mod.xmlRelaxNGValidatePopElement(ctxt__o, self._o, e... | [
"Pop the element end from the RelaxNG validation stack. "
] |
Please provide a description of the function:def relaxNGValidatePushElement(self, ctxt, elem):
if ctxt is None: ctxt__o = None
else: ctxt__o = ctxt._o
if elem is None: elem__o = None
else: elem__o = elem._o
ret = libxml2mod.xmlRelaxNGValidatePushElement(ctxt__o, self._o,... | [
"Push a new element start on the RelaxNG validation stack. "
] |
Please provide a description of the function:def copyDoc(self, recursive):
ret = libxml2mod.xmlCopyDoc(self._o, recursive)
if ret is None:raise treeError('xmlCopyDoc() failed')
__tmp = xmlDoc(_obj=ret)
return __tmp | [
"Do a copy of the document info. If recursive, the content\n tree will be copied too as well as DTD, namespaces and\n entities. "
] |
Please provide a description of the function:def copyNode(self, node, extended):
if node is None: node__o = None
else: node__o = node._o
ret = libxml2mod.xmlDocCopyNode(node__o, self._o, extended)
if ret is None:raise treeError('xmlDocCopyNode() failed')
__tmp = xmlNode(... | [
"Do a copy of the node to a given document. "
] |
Please provide a description of the function:def copyNodeList(self, node):
if node is None: node__o = None
else: node__o = node._o
ret = libxml2mod.xmlDocCopyNodeList(self._o, node__o)
if ret is None:raise treeError('xmlDocCopyNodeList() failed')
__tmp = xmlNode(_obj=ret... | [
"Do a recursive copy of the node list. "
] |
Please provide a description of the function:def createIntSubset(self, name, ExternalID, SystemID):
ret = libxml2mod.xmlCreateIntSubset(self._o, name, ExternalID, SystemID)
if ret is None:raise treeError('xmlCreateIntSubset() failed')
__tmp = xmlDtd(_obj=ret)
return __tmp | [
"Create the internal subset of a document "
] |
Please provide a description of the function:def dump(self, f):
ret = libxml2mod.xmlDocDump(f, self._o)
return ret | [
"Dump an XML document to an open FILE. "
] |
Please provide a description of the function:def elemDump(self, f, cur):
if cur is None: cur__o = None
else: cur__o = cur._o
libxml2mod.xmlElemDump(f, self._o, cur__o) | [
"Dump an XML/HTML node, recursive behaviour, children are\n printed too. "
] |
Please provide a description of the function:def formatDump(self, f, format):
ret = libxml2mod.xmlDocFormatDump(f, self._o, format)
return ret | [
"Dump an XML document to an open FILE. "
] |
Please provide a description of the function:def getRootElement(self):
ret = libxml2mod.xmlDocGetRootElement(self._o)
if ret is None:raise treeError('xmlDocGetRootElement() failed')
__tmp = xmlNode(_obj=ret)
return __tmp | [
"Get the root element of the document (doc->children is a\n list containing possibly comments, PIs, etc ...). "
] |
Please provide a description of the function:def intSubset(self):
ret = libxml2mod.xmlGetIntSubset(self._o)
if ret is None:raise treeError('xmlGetIntSubset() failed')
__tmp = xmlDtd(_obj=ret)
return __tmp | [
"Get the internal subset of a document "
] |
Please provide a description of the function:def newCDataBlock(self, content, len):
ret = libxml2mod.xmlNewCDataBlock(self._o, content, len)
if ret is None:raise treeError('xmlNewCDataBlock() failed')
__tmp = xmlNode(_obj=ret)
return __tmp | [
"Creation of a new node containing a CDATA block. "
] |
Please provide a description of the function:def newCharRef(self, name):
ret = libxml2mod.xmlNewCharRef(self._o, name)
if ret is None:raise treeError('xmlNewCharRef() failed')
__tmp = xmlNode(_obj=ret)
return __tmp | [
"Creation of a new character reference node. "
] |
Please provide a description of the function:def newDocComment(self, content):
ret = libxml2mod.xmlNewDocComment(self._o, content)
if ret is None:raise treeError('xmlNewDocComment() failed')
__tmp = xmlNode(_obj=ret)
return __tmp | [
"Creation of a new node containing a comment within a\n document. "
] |
Please provide a description of the function:def newDocFragment(self):
ret = libxml2mod.xmlNewDocFragment(self._o)
if ret is None:raise treeError('xmlNewDocFragment() failed')
__tmp = xmlNode(_obj=ret)
return __tmp | [
"Creation of a new Fragment node. "
] |
Please provide a description of the function:def newDocNode(self, ns, name, content):
if ns is None: ns__o = None
else: ns__o = ns._o
ret = libxml2mod.xmlNewDocNode(self._o, ns__o, name, content)
if ret is None:raise treeError('xmlNewDocNode() failed')
__tmp = xmlNode(_o... | [
"Creation of a new node element within a document. @ns and\n @content are optional (None). NOTE: @content is supposed to\n be a piece of XML CDATA, so it allow entities references,\n but XML special chars need to be escaped first by using\n xmlEncodeEntitiesReentrant(). Use xmlNe... |
Please provide a description of the function:def newDocNodeEatName(self, ns, name, content):
if ns is None: ns__o = None
else: ns__o = ns._o
ret = libxml2mod.xmlNewDocNodeEatName(self._o, ns__o, name, content)
if ret is None:raise treeError('xmlNewDocNodeEatName() failed')
... | [
"Creation of a new node element within a document. @ns and\n @content are optional (None). NOTE: @content is supposed to\n be a piece of XML CDATA, so it allow entities references,\n but XML special chars need to be escaped first by using\n xmlEncodeEntitiesReentrant(). Use xmlNe... |
Please provide a description of the function:def newDocPI(self, name, content):
ret = libxml2mod.xmlNewDocPI(self._o, name, content)
if ret is None:raise treeError('xmlNewDocPI() failed')
__tmp = xmlNode(_obj=ret)
return __tmp | [
"Creation of a processing instruction element. "
] |
Please provide a description of the function:def newDocProp(self, name, value):
ret = libxml2mod.xmlNewDocProp(self._o, name, value)
if ret is None:raise treeError('xmlNewDocProp() failed')
__tmp = xmlAttr(_obj=ret)
return __tmp | [
"Create a new property carried by a document. "
] |
Please provide a description of the function:def newDocRawNode(self, ns, name, content):
if ns is None: ns__o = None
else: ns__o = ns._o
ret = libxml2mod.xmlNewDocRawNode(self._o, ns__o, name, content)
if ret is None:raise treeError('xmlNewDocRawNode() failed')
__tmp = x... | [
"Creation of a new node element within a document. @ns and\n @content are optional (None). "
] |
Please provide a description of the function:def newDocText(self, content):
ret = libxml2mod.xmlNewDocText(self._o, content)
if ret is None:raise treeError('xmlNewDocText() failed')
__tmp = xmlNode(_obj=ret)
return __tmp | [
"Creation of a new text node within a document. "
] |
Please provide a description of the function:def newDocTextLen(self, content, len):
ret = libxml2mod.xmlNewDocTextLen(self._o, content, len)
if ret is None:raise treeError('xmlNewDocTextLen() failed')
__tmp = xmlNode(_obj=ret)
return __tmp | [
"Creation of a new text node with an extra content length\n parameter. The text node pertain to a given document. "
] |
Please provide a description of the function:def newDtd(self, name, ExternalID, SystemID):
ret = libxml2mod.xmlNewDtd(self._o, name, ExternalID, SystemID)
if ret is None:raise treeError('xmlNewDtd() failed')
__tmp = xmlDtd(_obj=ret)
return __tmp | [
"Creation of a new DTD for the external subset. To create an\n internal subset, use xmlCreateIntSubset(). "
] |
Please provide a description of the function:def newGlobalNs(self, href, prefix):
ret = libxml2mod.xmlNewGlobalNs(self._o, href, prefix)
if ret is None:raise treeError('xmlNewGlobalNs() failed')
__tmp = xmlNs(_obj=ret)
return __tmp | [
"Creation of a Namespace, the old way using PI and without\n scoping DEPRECATED !!! "
] |
Please provide a description of the function:def newReference(self, name):
ret = libxml2mod.xmlNewReference(self._o, name)
if ret is None:raise treeError('xmlNewReference() failed')
__tmp = xmlNode(_obj=ret)
return __tmp | [
"Creation of a new reference node. "
] |
Please provide a description of the function:def nodeDumpOutput(self, buf, cur, level, format, encoding):
if buf is None: buf__o = None
else: buf__o = buf._o
if cur is None: cur__o = None
else: cur__o = cur._o
libxml2mod.xmlNodeDumpOutput(buf__o, self._o, cur__o, level, ... | [
"Dump an XML node, recursive behaviour, children are printed\n too. Note that @format = 1 provide node indenting only if\n xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was\n called "
] |
Please provide a description of the function:def nodeGetBase(self, cur):
if cur is None: cur__o = None
else: cur__o = cur._o
ret = libxml2mod.xmlNodeGetBase(self._o, cur__o)
return ret | [
"Searches for the BASE URL. The code should work on both XML\n and HTML document even if base mechanisms are completely\n different. It returns the base as defined in RFC 2396\n sections 5.1.1. Base URI within Document Content and 5.1.2.\n Base URI from the Encapsulating Entity H... |
Please provide a description of the function:def nodeListGetRawString(self, list, inLine):
if list is None: list__o = None
else: list__o = list._o
ret = libxml2mod.xmlNodeListGetRawString(self._o, list__o, inLine)
return ret | [
"Builds the string equivalent to the text contained in the\n Node list made of TEXTs and ENTITY_REFs, contrary to\n xmlNodeListGetString() this function doesn't do any\n character encoding handling. "
] |
Please provide a description of the function:def nodeListGetString(self, list, inLine):
if list is None: list__o = None
else: list__o = list._o
ret = libxml2mod.xmlNodeListGetString(self._o, list__o, inLine)
return ret | [
"Build the string equivalent to the text contained in the\n Node list made of TEXTs and ENTITY_REFs "
] |
Please provide a description of the function:def reconciliateNs(self, tree):
if tree is None: tree__o = None
else: tree__o = tree._o
ret = libxml2mod.xmlReconciliateNs(self._o, tree__o)
return ret | [
"This function checks that all the namespaces declared\n within the given tree are properly declared. This is needed\n for example after Copy or Cut and then paste operations.\n The subtree may still hold pointers to namespace\n declarations outside the subtree or invalid/masked.... |
Please provide a description of the function:def saveFile(self, filename):
ret = libxml2mod.xmlSaveFile(filename, self._o)
return ret | [
"Dump an XML document to a file. Will use compression if\n compiled in and enabled. If @filename is \"-\" the stdout\n file is used. "
] |
Please provide a description of the function:def saveFileEnc(self, filename, encoding):
ret = libxml2mod.xmlSaveFileEnc(filename, self._o, encoding)
return ret | [
"Dump an XML document, converting it to the given encoding "
] |
Please provide a description of the function:def saveFileTo(self, buf, encoding):
if buf is None: buf__o = None
else: buf__o = buf._o
ret = libxml2mod.xmlSaveFileTo(buf__o, self._o, encoding)
return ret | [
"Dump an XML document to an I/O buffer. Warning ! This call\n xmlOutputBufferClose() on buf which is not available after\n this call. "
] |
Please provide a description of the function:def saveFormatFile(self, filename, format):
ret = libxml2mod.xmlSaveFormatFile(filename, self._o, format)
return ret | [
"Dump an XML document to a file. Will use compression if\n compiled in and enabled. If @filename is \"-\" the stdout\n file is used. If @format is set then the document will be\n indented on output. Note that @format = 1 provide node\n indenting only if xmlIndentTreeOutput = 1 or... |
Please provide a description of the function:def saveFormatFileEnc(self, filename, encoding, format):
ret = libxml2mod.xmlSaveFormatFileEnc(filename, self._o, encoding, format)
return ret | [
"Dump an XML document to a file or an URL. "
] |
Please provide a description of the function:def saveFormatFileTo(self, buf, encoding, format):
if buf is None: buf__o = None
else: buf__o = buf._o
ret = libxml2mod.xmlSaveFormatFileTo(buf__o, self._o, encoding, format)
return ret | [
"Dump an XML document to an I/O buffer. Warning ! This call\n xmlOutputBufferClose() on buf which is not available after\n this call. "
] |
Please provide a description of the function:def searchNs(self, node, nameSpace):
if node is None: node__o = None
else: node__o = node._o
ret = libxml2mod.xmlSearchNs(self._o, node__o, nameSpace)
if ret is None:raise treeError('xmlSearchNs() failed')
__tmp = xmlNs(_obj=r... | [
"Search a Ns registered under a given name space for a\n document. recurse on the parents until it finds the defined\n namespace or return None otherwise. @nameSpace can be None,\n this is a search for the default namespace. We don't allow\n to cross entities boundaries. If you d... |
Please provide a description of the function:def searchNsByHref(self, node, href):
if node is None: node__o = None
else: node__o = node._o
ret = libxml2mod.xmlSearchNsByHref(self._o, node__o, href)
if ret is None:raise treeError('xmlSearchNsByHref() failed')
__tmp = xmlN... | [
"Search a Ns aliasing a given URI. Recurse on the parents\n until it finds the defined namespace or return None\n otherwise. "
] |
Please provide a description of the function:def setListDoc(self, list):
if list is None: list__o = None
else: list__o = list._o
libxml2mod.xmlSetListDoc(list__o, self._o) | [
"update all nodes in the list to point to the right document "
] |
Please provide a description of the function:def setRootElement(self, root):
if root is None: root__o = None
else: root__o = root._o
ret = libxml2mod.xmlDocSetRootElement(self._o, root__o)
if ret is None:return None
__tmp = xmlNode(_obj=ret)
return __tmp | [
"Set the root element of the document (doc->children is a\n list containing possibly comments, PIs, etc ...). "
] |
Please provide a description of the function:def setTreeDoc(self, tree):
if tree is None: tree__o = None
else: tree__o = tree._o
libxml2mod.xmlSetTreeDoc(tree__o, self._o) | [
"update all nodes under the tree to point to the right\n document "
] |
Please provide a description of the function:def stringGetNodeList(self, value):
ret = libxml2mod.xmlStringGetNodeList(self._o, value)
if ret is None:raise treeError('xmlStringGetNodeList() failed')
__tmp = xmlNode(_obj=ret)
return __tmp | [
"Parse the value string and build the node list associated.\n Should produce a flat tree with only TEXTs and ENTITY_REFs. "
] |
Please provide a description of the function:def stringLenGetNodeList(self, value, len):
ret = libxml2mod.xmlStringLenGetNodeList(self._o, value, len)
if ret is None:raise treeError('xmlStringLenGetNodeList() failed')
__tmp = xmlNode(_obj=ret)
return __tmp | [
"Parse the value string and build the node list associated.\n Should produce a flat tree with only TEXTs and ENTITY_REFs. "
] |
Please provide a description of the function:def ID(self, ID):
ret = libxml2mod.xmlGetID(self._o, ID)
if ret is None:raise treeError('xmlGetID() failed')
__tmp = xmlAttr(_obj=ret)
return __tmp | [
"Search the attribute declaring the given ID "
] |
Please provide a description of the function:def isID(self, elem, attr):
if elem is None: elem__o = None
else: elem__o = elem._o
if attr is None: attr__o = None
else: attr__o = attr._o
ret = libxml2mod.xmlIsID(self._o, elem__o, attr__o)
return ret | [
"Determine whether an attribute is of type ID. In case we\n have DTD(s) then this is done if DTD loading has been\n requested. In the case of HTML documents parsed with the\n HTML parser, then ID detection is done systematically. "
] |
Please provide a description of the function:def isMixedElement(self, name):
ret = libxml2mod.xmlIsMixedElement(self._o, name)
return ret | [
"Search in the DtDs whether an element accept Mixed content\n (or ANY) basically if it is supposed to accept text childs "
] |
Please provide a description of the function:def isRef(self, elem, attr):
if elem is None: elem__o = None
else: elem__o = elem._o
if attr is None: attr__o = None
else: attr__o = attr._o
ret = libxml2mod.xmlIsRef(self._o, elem__o, attr__o)
return ret | [
"Determine whether an attribute is of type Ref. In case we\n have DTD(s) then this is simple, otherwise we use an\n heuristic: name Ref (upper or lowercase). "
] |
Please provide a description of the function:def removeID(self, attr):
if attr is None: attr__o = None
else: attr__o = attr._o
ret = libxml2mod.xmlRemoveID(self._o, attr__o)
return ret | [
"Remove the given attribute from the ID table maintained\n internally. "
] |
Please provide a description of the function:def removeRef(self, attr):
if attr is None: attr__o = None
else: attr__o = attr._o
ret = libxml2mod.xmlRemoveRef(self._o, attr__o)
return ret | [
"Remove the given attribute from the Ref table maintained\n internally. "
] |
Please provide a description of the function:def validCtxtNormalizeAttributeValue(self, ctxt, elem, name, value):
if ctxt is None: ctxt__o = None
else: ctxt__o = ctxt._o
if elem is None: elem__o = None
else: elem__o = elem._o
ret = libxml2mod.xmlValidCtxtNormalizeAttribu... | [
"Does the validation related extra step of the normalization\n of attribute values: If the declared value is not CDATA,\n then the XML processor must further process the normalized\n attribute value by discarding any leading and trailing\n space (#x20) characters, and by replaci... |
Please provide a description of the function:def validNormalizeAttributeValue(self, elem, name, value):
if elem is None: elem__o = None
else: elem__o = elem._o
ret = libxml2mod.xmlValidNormalizeAttributeValue(self._o, elem__o, name, value)
return ret | [
"Does the validation related extra step of the normalization\n of attribute values: If the declared value is not CDATA,\n then the XML processor must further process the normalized\n attribute value by discarding any leading and trailing\n space (#x20) characters, and by replaci... |
Please provide a description of the function:def validateDocument(self, ctxt):
if ctxt is None: ctxt__o = None
else: ctxt__o = ctxt._o
ret = libxml2mod.xmlValidateDocument(ctxt__o, self._o)
return ret | [
"Try to validate the document instance basically it does\n the all the checks described by the XML Rec i.e. validates\n the internal and external subset (if present) and validate\n the document tree. "
] |
Please provide a description of the function:def validateDocumentFinal(self, ctxt):
if ctxt is None: ctxt__o = None
else: ctxt__o = ctxt._o
ret = libxml2mod.xmlValidateDocumentFinal(ctxt__o, self._o)
return ret | [
"Does the final step for the document validation once all\n the incremental validation steps have been completed\n basically it does the following checks described by the XML\n Rec Check all the IDREF/IDREFS attributes definition for\n validity "
] |
Please provide a description of the function:def validateDtd(self, ctxt, dtd):
if ctxt is None: ctxt__o = None
else: ctxt__o = ctxt._o
if dtd is None: dtd__o = None
else: dtd__o = dtd._o
ret = libxml2mod.xmlValidateDtd(ctxt__o, self._o, dtd__o)
return ret | [
"Try to validate the document against the dtd instance\n Basically it does check all the definitions in the DtD.\n Note the the internal subset (if present) is de-coupled\n (i.e. not used), which could give problems if ID or IDREF\n is present. "
] |
Please provide a description of the function:def validateDtdFinal(self, ctxt):
if ctxt is None: ctxt__o = None
else: ctxt__o = ctxt._o
ret = libxml2mod.xmlValidateDtdFinal(ctxt__o, self._o)
return ret | [
"Does the final step for the dtds validation once all the\n subsets have been parsed basically it does the following\n checks described by the XML Rec - check that ENTITY and\n ENTITIES type attributes default or possible values matches\n one of the defined entities. - check tha... |
Please provide a description of the function:def validateElement(self, ctxt, elem):
if ctxt is None: ctxt__o = None
else: ctxt__o = ctxt._o
if elem is None: elem__o = None
else: elem__o = elem._o
ret = libxml2mod.xmlValidateElement(ctxt__o, self._o, elem__o)
retu... | [
"Try to validate the subtree under an element "
] |
Please provide a description of the function:def validateNotationUse(self, ctxt, notationName):
if ctxt is None: ctxt__o = None
else: ctxt__o = ctxt._o
ret = libxml2mod.xmlValidateNotationUse(ctxt__o, self._o, notationName)
return ret | [
"Validate that the given name match a notation declaration.\n - [ VC: Notation Declared ] "
] |
Please provide a description of the function:def validateOneAttribute(self, ctxt, elem, attr, value):
if ctxt is None: ctxt__o = None
else: ctxt__o = ctxt._o
if elem is None: elem__o = None
else: elem__o = elem._o
if attr is None: attr__o = None
else: attr__o = a... | [
"Try to validate a single attribute for an element basically\n it does the following checks as described by the XML-1.0\n recommendation: - [ VC: Attribute Value Type ] - [ VC:\n Fixed Attribute Default ] - [ VC: Entity Name ] - [ VC:\n Name Token ] - [ VC: ID ] - [ VC: IDREF ] -... |
Please provide a description of the function:def validateOneElement(self, ctxt, elem):
if ctxt is None: ctxt__o = None
else: ctxt__o = ctxt._o
if elem is None: elem__o = None
else: elem__o = elem._o
ret = libxml2mod.xmlValidateOneElement(ctxt__o, self._o, elem__o)
... | [
"Try to validate a single element and it's attributes,\n basically it does the following checks as described by the\n XML-1.0 recommendation: - [ VC: Element Valid ] - [ VC:\n Required Attribute ] Then call xmlValidateOneAttribute()\n for each attribute present. The ID/IDREF che... |
Please provide a description of the function:def validateOneNamespace(self, ctxt, elem, prefix, ns, value):
if ctxt is None: ctxt__o = None
else: ctxt__o = ctxt._o
if elem is None: elem__o = None
else: elem__o = elem._o
if ns is None: ns__o = None
else: ns__o = n... | [
"Try to validate a single namespace declaration for an\n element basically it does the following checks as described\n by the XML-1.0 recommendation: - [ VC: Attribute Value Type\n ] - [ VC: Fixed Attribute Default ] - [ VC: Entity Name ] -\n [ VC: Name Token ] - [ VC: ID ] - [ V... |
Please provide a description of the function:def validatePopElement(self, ctxt, elem, qname):
if ctxt is None: ctxt__o = None
else: ctxt__o = ctxt._o
if elem is None: elem__o = None
else: elem__o = elem._o
ret = libxml2mod.xmlValidatePopElement(ctxt__o, self._o, elem__o,... | [
"Pop the element end from the validation stack. "
] |
Please provide a description of the function:def validatePushElement(self, ctxt, elem, qname):
if ctxt is None: ctxt__o = None
else: ctxt__o = ctxt._o
if elem is None: elem__o = None
else: elem__o = elem._o
ret = libxml2mod.xmlValidatePushElement(ctxt__o, self._o, elem__... | [
"Push a new element start on the validation stack. "
] |
Please provide a description of the function:def validateRoot(self, ctxt):
if ctxt is None: ctxt__o = None
else: ctxt__o = ctxt._o
ret = libxml2mod.xmlValidateRoot(ctxt__o, self._o)
return ret | [
"Try to validate a the root element basically it does the\n following check as described by the XML-1.0 recommendation:\n - [ VC: Root Element Type ] it doesn't try to recurse or\n apply other check to the element "
] |
Please provide a description of the function:def xincludeProcessFlags(self, flags):
ret = libxml2mod.xmlXIncludeProcessFlags(self._o, flags)
return ret | [
"Implement the XInclude substitution on the XML document @doc "
] |
Please provide a description of the function:def NewWalker(self, reader):
if reader is None: reader__o = None
else: reader__o = reader._o
ret = libxml2mod.xmlReaderNewWalker(reader__o, self._o)
return ret | [
"Setup an xmltextReader to parse a preparsed XML document.\n This reuses the existing @reader xmlTextReader. "
] |
Please provide a description of the function:def readerWalker(self):
ret = libxml2mod.xmlReaderWalker(self._o)
if ret is None:raise treeError('xmlReaderWalker() failed')
__tmp = xmlTextReader(_obj=ret)
return __tmp | [
"Create an xmltextReader for a preparsed document. "
] |
Please provide a description of the function:def schemaNewDocParserCtxt(self):
ret = libxml2mod.xmlSchemaNewDocParserCtxt(self._o)
if ret is None:raise parserError('xmlSchemaNewDocParserCtxt() failed')
__tmp = SchemaParserCtxt(_obj=ret)
return __tmp | [
"Create an XML Schemas parse context for that document. NB.\n The document may be modified during the parsing process. "
] |
Please provide a description of the function:def schemaValidateDoc(self, ctxt):
if ctxt is None: ctxt__o = None
else: ctxt__o = ctxt._o
ret = libxml2mod.xmlSchemaValidateDoc(ctxt__o, self._o)
return ret | [
"Validate a document tree in memory. "
] |
Please provide a description of the function:def xpathNewContext(self):
ret = libxml2mod.xmlXPathNewContext(self._o)
if ret is None:raise xpathError('xmlXPathNewContext() failed')
__tmp = xpathContext(_obj=ret)
return __tmp | [
"Create a new xmlXPathContext "
] |
Please provide a description of the function:def xpointerNewContext(self, here, origin):
if here is None: here__o = None
else: here__o = here._o
if origin is None: origin__o = None
else: origin__o = origin._o
ret = libxml2mod.xmlXPtrNewContext(self._o, here__o, origin__o... | [
"Create a new XPointer context "
] |
Please provide a description of the function:def doc(self):
ret = libxml2mod.xmlParserGetDoc(self._o)
if ret is None:raise parserError('xmlParserGetDoc() failed')
__tmp = xmlDoc(_obj=ret)
return __tmp | [
"Get the document tree from a parser context. "
] |
Please provide a description of the function:def htmlCtxtReadDoc(self, cur, URL, encoding, options):
ret = libxml2mod.htmlCtxtReadDoc(self._o, cur, URL, encoding, options)
if ret is None:raise treeError('htmlCtxtReadDoc() failed')
__tmp = xmlDoc(_obj=ret)
return __tmp | [
"parse an XML in-memory document and build a tree. This\n reuses the existing @ctxt parser context "
] |
Please provide a description of the function:def htmlCtxtReadFd(self, fd, URL, encoding, options):
ret = libxml2mod.htmlCtxtReadFd(self._o, fd, URL, encoding, options)
if ret is None:raise treeError('htmlCtxtReadFd() failed')
__tmp = xmlDoc(_obj=ret)
return __tmp | [
"parse an XML from a file descriptor and build a tree. This\n reuses the existing @ctxt parser context "
] |
Please provide a description of the function:def htmlCtxtReadFile(self, filename, encoding, options):
ret = libxml2mod.htmlCtxtReadFile(self._o, filename, encoding, options)
if ret is None:raise treeError('htmlCtxtReadFile() failed')
__tmp = xmlDoc(_obj=ret)
return __tmp | [
"parse an XML file from the filesystem or the network. This\n reuses the existing @ctxt parser context "
] |
Please provide a description of the function:def htmlCtxtUseOptions(self, options):
ret = libxml2mod.htmlCtxtUseOptions(self._o, options)
return ret | [
"Applies the options to the parser context "
] |
Please provide a description of the function:def htmlParseChunk(self, chunk, size, terminate):
ret = libxml2mod.htmlParseChunk(self._o, chunk, size, terminate)
return ret | [
"Parse a Chunk of memory "
] |
Please provide a description of the function:def ctxtReadFile(self, filename, encoding, options):
ret = libxml2mod.xmlCtxtReadFile(self._o, filename, encoding, options)
if ret is None:raise treeError('xmlCtxtReadFile() failed')
__tmp = xmlDoc(_obj=ret)
return __tmp | [
"parse an XML file from the filesystem or the network. This\n reuses the existing @ctxt parser context "
] |
Please provide a description of the function:def ctxtReadMemory(self, buffer, size, URL, encoding, options):
ret = libxml2mod.xmlCtxtReadMemory(self._o, buffer, size, URL, encoding, options)
if ret is None:raise treeError('xmlCtxtReadMemory() failed')
__tmp = xmlDoc(_obj=ret)
re... | [
"parse an XML in-memory document and build a tree. This\n reuses the existing @ctxt parser context "
] |
Please provide a description of the function:def ctxtResetPush(self, chunk, size, filename, encoding):
ret = libxml2mod.xmlCtxtResetPush(self._o, chunk, size, filename, encoding)
return ret | [
"Reset a push parser context "
] |
Please provide a description of the function:def ctxtUseOptions(self, options):
ret = libxml2mod.xmlCtxtUseOptions(self._o, options)
return ret | [
"Applies the options to the parser context "
] |
Please provide a description of the function:def parseChunk(self, chunk, size, terminate):
ret = libxml2mod.xmlParseChunk(self._o, chunk, size, terminate)
return ret | [
"Parse a Chunk of memory "
] |
Please provide a description of the function:def setupParserForBuffer(self, buffer, filename):
libxml2mod.xmlSetupParserForBuffer(self._o, buffer, filename) | [
"Setup the parser context to parse a new buffer; Clears any\n prior contents from the parser context. The buffer\n parameter must not be None, but the filename parameter can\n be "
] |
Please provide a description of the function:def decodeEntities(self, len, what, end, end2, end3):
ret = libxml2mod.xmlDecodeEntities(self._o, len, what, end, end2, end3)
return ret | [
"This function is deprecated, we now always process entities\n content through xmlStringDecodeEntities TODO: remove it in\n next major release. [67] Reference ::= EntityRef | CharRef\n [69] PEReference ::= '%' Name ';' "
] |
Please provide a description of the function:def handleEntity(self, entity):
if entity is None: entity__o = None
else: entity__o = entity._o
libxml2mod.xmlHandleEntity(self._o, entity__o) | [
"Default handling of defined entities, when should we define\n a new input stream ? When do we just handle that as a set\n of chars ? OBSOLETE: to be removed at some point. "
] |
Please provide a description of the function:def parseEntityRef(self):
ret = libxml2mod.xmlParseEntityRef(self._o)
if ret is None:raise parserError('xmlParseEntityRef() failed')
__tmp = xmlEntity(_obj=ret)
return __tmp | [
"parse ENTITY references declarations [68] EntityRef ::=\n '&' Name ';' [ WFC: Entity Declared ] In a document\n without any DTD, a document with only an internal DTD\n subset which contains no parameter entity references, or a\n document with \"standalone='yes'\", the Name giv... |
Please provide a description of the function:def parseExternalSubset(self, ExternalID, SystemID):
libxml2mod.xmlParseExternalSubset(self._o, ExternalID, SystemID) | [
"parse Markup declarations from an external subset [30]\n extSubset ::= textDecl? extSubsetDecl [31] extSubsetDecl\n ::= (markupdecl | conditionalSect | PEReference | S) * "
] |
Please provide a description of the function:def stringDecodeEntities(self, str, what, end, end2, end3):
ret = libxml2mod.xmlStringDecodeEntities(self._o, str, what, end, end2, end3)
return ret | [
"Takes a entity string content and process to do the\n adequate substitutions. [67] Reference ::= EntityRef |\n CharRef [69] PEReference ::= '%' Name ';' "
] |
Please provide a description of the function:def stringLenDecodeEntities(self, str, len, what, end, end2, end3):
ret = libxml2mod.xmlStringLenDecodeEntities(self._o, str, len, what, end, end2, end3)
return ret | [
"Takes a entity string content and process to do the\n adequate substitutions. [67] Reference ::= EntityRef |\n CharRef [69] PEReference ::= '%' Name ';' "
] |
Please provide a description of the function:def debugDumpAttr(self, output, depth):
libxml2mod.xmlDebugDumpAttr(output, self._o, depth) | [
"Dumps debug information for the attribute "
] |
Please provide a description of the function:def debugDumpAttrList(self, output, depth):
libxml2mod.xmlDebugDumpAttrList(output, self._o, depth) | [
"Dumps debug information for the attribute list "
] |
Please provide a description of the function:def copyProp(self, target):
if target is None: target__o = None
else: target__o = target._o
ret = libxml2mod.xmlCopyProp(target__o, self._o)
if ret is None:raise treeError('xmlCopyProp() failed')
__tmp = xmlAttr(_obj=ret)
... | [
"Do a copy of the attribute. "
] |
Please provide a description of the function:def copyPropList(self, target):
if target is None: target__o = None
else: target__o = target._o
ret = libxml2mod.xmlCopyPropList(target__o, self._o)
if ret is None:raise treeError('xmlCopyPropList() failed')
__tmp = xmlAttr(_o... | [
"Do a copy of an attribute list. "
] |
Please provide a description of the function:def removeID(self, doc):
if doc is None: doc__o = None
else: doc__o = doc._o
ret = libxml2mod.xmlRemoveID(doc__o, self._o)
return ret | [
"Remove the given attribute from the ID table maintained\n internally. "
] |
Please provide a description of the function:def removeRef(self, doc):
if doc is None: doc__o = None
else: doc__o = doc._o
ret = libxml2mod.xmlRemoveRef(doc__o, self._o)
return ret | [
"Remove the given attribute from the Ref table maintained\n internally. "
] |
Please provide a description of the function:def add(self, type, orig, replace):
ret = libxml2mod.xmlACatalogAdd(self._o, type, orig, replace)
return ret | [
"Add an entry in the catalog, it may overwrite existing but\n different entries. "
] |
Please provide a description of the function:def remove(self, value):
ret = libxml2mod.xmlACatalogRemove(self._o, value)
return ret | [
"Remove an entry from the catalog "
] |
Please provide a description of the function:def resolve(self, pubID, sysID):
ret = libxml2mod.xmlACatalogResolve(self._o, pubID, sysID)
return ret | [
"Do a complete resolution lookup of an External Identifier "
] |
Please provide a description of the function:def resolvePublic(self, pubID):
ret = libxml2mod.xmlACatalogResolvePublic(self._o, pubID)
return ret | [
"Try to lookup the catalog local reference associated to a\n public ID in that catalog "
] |
Please provide a description of the function:def resolveSystem(self, sysID):
ret = libxml2mod.xmlACatalogResolveSystem(self._o, sysID)
return ret | [
"Try to lookup the catalog resource for a system ID "
] |
Please provide a description of the function:def resolveURI(self, URI):
ret = libxml2mod.xmlACatalogResolveURI(self._o, URI)
return ret | [
"Do a complete resolution lookup of an URI "
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.