id
int32
0
252k
repo
stringlengths
7
55
path
stringlengths
4
127
func_name
stringlengths
1
88
original_string
stringlengths
75
19.8k
language
stringclasses
1 value
code
stringlengths
75
19.8k
code_tokens
list
docstring
stringlengths
3
17.3k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
87
242
29,300
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlNode.addSibling
def addSibling(self, elem): """Add a new element @elem to the list of siblings of @cur merging adjacent TEXT nodes (@elem may be freed) If the new element was already inserted in a document it is first unlinked from its existing context. """ if elem is None: elem__o = None else: elem__o = elem._o ret = libxml2mod.xmlAddSibling(self._o, elem__o) if ret is None:raise treeError('xmlAddSibling() failed') __tmp = xmlNode(_obj=ret) return __tmp
python
def addSibling(self, elem): """Add a new element @elem to the list of siblings of @cur merging adjacent TEXT nodes (@elem may be freed) If the new element was already inserted in a document it is first unlinked from its existing context. """ if elem is None: elem__o = None else: elem__o = elem._o ret = libxml2mod.xmlAddSibling(self._o, elem__o) if ret is None:raise treeError('xmlAddSibling() failed') __tmp = xmlNode(_obj=ret) return __tmp
[ "def", "addSibling", "(", "self", ",", "elem", ")", ":", "if", "elem", "is", "None", ":", "elem__o", "=", "None", "else", ":", "elem__o", "=", "elem", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlAddSibling", "(", "self", ".", "_o", ",", "elem__o", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlAddSibling() failed'", ")", "__tmp", "=", "xmlNode", "(", "_obj", "=", "ret", ")", "return", "__tmp" ]
Add a new element @elem to the list of siblings of @cur merging adjacent TEXT nodes (@elem may be freed) If the new element was already inserted in a document it is first unlinked from its existing context.
[ "Add", "a", "new", "element" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3141-L3151
29,301
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlNode.copyNode
def copyNode(self, extended): """Do a copy of the node. """ ret = libxml2mod.xmlCopyNode(self._o, extended) if ret is None:raise treeError('xmlCopyNode() failed') __tmp = xmlNode(_obj=ret) return __tmp
python
def copyNode(self, extended): """Do a copy of the node. """ ret = libxml2mod.xmlCopyNode(self._o, extended) if ret is None:raise treeError('xmlCopyNode() failed') __tmp = xmlNode(_obj=ret) return __tmp
[ "def", "copyNode", "(", "self", ",", "extended", ")", ":", "ret", "=", "libxml2mod", ".", "xmlCopyNode", "(", "self", ".", "_o", ",", "extended", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlCopyNode() failed'", ")", "__tmp", "=", "xmlNode", "(", "_obj", "=", "ret", ")", "return", "__tmp" ]
Do a copy of the node.
[ "Do", "a", "copy", "of", "the", "node", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3153-L3158
29,302
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlNode.firstElementChild
def firstElementChild(self): """Finds the first child node of that element which is a Element node Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities references. """ ret = libxml2mod.xmlFirstElementChild(self._o) if ret is None:return None __tmp = xmlNode(_obj=ret) return __tmp
python
def firstElementChild(self): """Finds the first child node of that element which is a Element node Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities references. """ ret = libxml2mod.xmlFirstElementChild(self._o) if ret is None:return None __tmp = xmlNode(_obj=ret) return __tmp
[ "def", "firstElementChild", "(", "self", ")", ":", "ret", "=", "libxml2mod", ".", "xmlFirstElementChild", "(", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "return", "None", "__tmp", "=", "xmlNode", "(", "_obj", "=", "ret", ")", "return", "__tmp" ]
Finds the first child node of that element which is a Element node Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities references.
[ "Finds", "the", "first", "child", "node", "of", "that", "element", "which", "is", "a", "Element", "node", "Note", "the", "handling", "of", "entities", "references", "is", "different", "than", "in", "the", "W3C", "DOM", "element", "traversal", "spec", "since", "we", "don", "t", "have", "back", "reference", "from", "entities", "content", "to", "entities", "references", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3214-L3223
29,303
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlNode.lastChild
def lastChild(self): """Search the last child of a node. """ ret = libxml2mod.xmlGetLastChild(self._o) if ret is None:raise treeError('xmlGetLastChild() failed') __tmp = xmlNode(_obj=ret) return __tmp
python
def lastChild(self): """Search the last child of a node. """ ret = libxml2mod.xmlGetLastChild(self._o) if ret is None:raise treeError('xmlGetLastChild() failed') __tmp = xmlNode(_obj=ret) return __tmp
[ "def", "lastChild", "(", "self", ")", ":", "ret", "=", "libxml2mod", ".", "xmlGetLastChild", "(", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlGetLastChild() failed'", ")", "__tmp", "=", "xmlNode", "(", "_obj", "=", "ret", ")", "return", "__tmp" ]
Search the last child of a node.
[ "Search", "the", "last", "child", "of", "a", "node", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3302-L3307
29,304
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlNode.lastElementChild
def lastElementChild(self): """Finds the last child node of that element which is a Element node Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities references. """ ret = libxml2mod.xmlLastElementChild(self._o) if ret is None:return None __tmp = xmlNode(_obj=ret) return __tmp
python
def lastElementChild(self): """Finds the last child node of that element which is a Element node Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities references. """ ret = libxml2mod.xmlLastElementChild(self._o) if ret is None:return None __tmp = xmlNode(_obj=ret) return __tmp
[ "def", "lastElementChild", "(", "self", ")", ":", "ret", "=", "libxml2mod", ".", "xmlLastElementChild", "(", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "return", "None", "__tmp", "=", "xmlNode", "(", "_obj", "=", "ret", ")", "return", "__tmp" ]
Finds the last child node of that element which is a Element node Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities references.
[ "Finds", "the", "last", "child", "node", "of", "that", "element", "which", "is", "a", "Element", "node", "Note", "the", "handling", "of", "entities", "references", "is", "different", "than", "in", "the", "W3C", "DOM", "element", "traversal", "spec", "since", "we", "don", "t", "have", "back", "reference", "from", "entities", "content", "to", "entities", "references", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3309-L3318
29,305
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlNode.newNs
def newNs(self, href, prefix): """Creation of a new Namespace. This function will refuse to create a namespace with a similar prefix than an existing one present on this node. We use href==None in the case of an element creation where the namespace was not defined. """ ret = libxml2mod.xmlNewNs(self._o, href, prefix) if ret is None:raise treeError('xmlNewNs() failed') __tmp = xmlNs(_obj=ret) return __tmp
python
def newNs(self, href, prefix): """Creation of a new Namespace. This function will refuse to create a namespace with a similar prefix than an existing one present on this node. We use href==None in the case of an element creation where the namespace was not defined. """ ret = libxml2mod.xmlNewNs(self._o, href, prefix) if ret is None:raise treeError('xmlNewNs() failed') __tmp = xmlNs(_obj=ret) return __tmp
[ "def", "newNs", "(", "self", ",", "href", ",", "prefix", ")", ":", "ret", "=", "libxml2mod", ".", "xmlNewNs", "(", "self", ".", "_o", ",", "href", ",", "prefix", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlNewNs() failed'", ")", "__tmp", "=", "xmlNs", "(", "_obj", "=", "ret", ")", "return", "__tmp" ]
Creation of a new Namespace. This function will refuse to create a namespace with a similar prefix than an existing one present on this node. We use href==None in the case of an element creation where the namespace was not defined.
[ "Creation", "of", "a", "new", "Namespace", ".", "This", "function", "will", "refuse", "to", "create", "a", "namespace", "with", "a", "similar", "prefix", "than", "an", "existing", "one", "present", "on", "this", "node", ".", "We", "use", "href", "==", "None", "in", "the", "case", "of", "an", "element", "creation", "where", "the", "namespace", "was", "not", "defined", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3363-L3371
29,306
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlNode.newProp
def newProp(self, name, value): """Create a new property carried by a node. """ ret = libxml2mod.xmlNewProp(self._o, name, value) if ret is None:raise treeError('xmlNewProp() failed') __tmp = xmlAttr(_obj=ret) return __tmp
python
def newProp(self, name, value): """Create a new property carried by a node. """ ret = libxml2mod.xmlNewProp(self._o, name, value) if ret is None:raise treeError('xmlNewProp() failed') __tmp = xmlAttr(_obj=ret) return __tmp
[ "def", "newProp", "(", "self", ",", "name", ",", "value", ")", ":", "ret", "=", "libxml2mod", ".", "xmlNewProp", "(", "self", ".", "_o", ",", "name", ",", "value", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlNewProp() failed'", ")", "__tmp", "=", "xmlAttr", "(", "_obj", "=", "ret", ")", "return", "__tmp" ]
Create a new property carried by a node.
[ "Create", "a", "new", "property", "carried", "by", "a", "node", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3393-L3398
29,307
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlNode.nextElementSibling
def nextElementSibling(self): """Finds the first closest next sibling of the node which is an element node. Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities references. """ ret = libxml2mod.xmlNextElementSibling(self._o) if ret is None:return None __tmp = xmlNode(_obj=ret) return __tmp
python
def nextElementSibling(self): """Finds the first closest next sibling of the node which is an element node. Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities references. """ ret = libxml2mod.xmlNextElementSibling(self._o) if ret is None:return None __tmp = xmlNode(_obj=ret) return __tmp
[ "def", "nextElementSibling", "(", "self", ")", ":", "ret", "=", "libxml2mod", ".", "xmlNextElementSibling", "(", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "return", "None", "__tmp", "=", "xmlNode", "(", "_obj", "=", "ret", ")", "return", "__tmp" ]
Finds the first closest next sibling of the node which is an element node. Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities references.
[ "Finds", "the", "first", "closest", "next", "sibling", "of", "the", "node", "which", "is", "an", "element", "node", ".", "Note", "the", "handling", "of", "entities", "references", "is", "different", "than", "in", "the", "W3C", "DOM", "element", "traversal", "spec", "since", "we", "don", "t", "have", "back", "reference", "from", "entities", "content", "to", "entities", "references", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3419-L3428
29,308
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlNode.previousElementSibling
def previousElementSibling(self): """Finds the first closest previous sibling of the node which is an element node. Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities references. """ ret = libxml2mod.xmlPreviousElementSibling(self._o) if ret is None:return None __tmp = xmlNode(_obj=ret) return __tmp
python
def previousElementSibling(self): """Finds the first closest previous sibling of the node which is an element node. Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities references. """ ret = libxml2mod.xmlPreviousElementSibling(self._o) if ret is None:return None __tmp = xmlNode(_obj=ret) return __tmp
[ "def", "previousElementSibling", "(", "self", ")", ":", "ret", "=", "libxml2mod", ".", "xmlPreviousElementSibling", "(", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "return", "None", "__tmp", "=", "xmlNode", "(", "_obj", "=", "ret", ")", "return", "__tmp" ]
Finds the first closest previous sibling of the node which is an element node. Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities references.
[ "Finds", "the", "first", "closest", "previous", "sibling", "of", "the", "node", "which", "is", "an", "element", "node", ".", "Note", "the", "handling", "of", "entities", "references", "is", "different", "than", "in", "the", "W3C", "DOM", "element", "traversal", "spec", "since", "we", "don", "t", "have", "back", "reference", "from", "entities", "content", "to", "entities", "references", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3454-L3463
29,309
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlNode.replaceNode
def replaceNode(self, cur): """Unlink the old node from its current context, prune the new one at the same place. If @cur was already inserted in a document it is first unlinked from its existing context. """ if cur is None: cur__o = None else: cur__o = cur._o ret = libxml2mod.xmlReplaceNode(self._o, cur__o) if ret is None:raise treeError('xmlReplaceNode() failed') __tmp = xmlNode(_obj=ret) return __tmp
python
def replaceNode(self, cur): """Unlink the old node from its current context, prune the new one at the same place. If @cur was already inserted in a document it is first unlinked from its existing context. """ if cur is None: cur__o = None else: cur__o = cur._o ret = libxml2mod.xmlReplaceNode(self._o, cur__o) if ret is None:raise treeError('xmlReplaceNode() failed') __tmp = xmlNode(_obj=ret) return __tmp
[ "def", "replaceNode", "(", "self", ",", "cur", ")", ":", "if", "cur", "is", "None", ":", "cur__o", "=", "None", "else", ":", "cur__o", "=", "cur", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlReplaceNode", "(", "self", ".", "_o", ",", "cur__o", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlReplaceNode() failed'", ")", "__tmp", "=", "xmlNode", "(", "_obj", "=", "ret", ")", "return", "__tmp" ]
Unlink the old node from its current context, prune the new one at the same place. If @cur was already inserted in a document it is first unlinked from its existing context.
[ "Unlink", "the", "old", "node", "from", "its", "current", "context", "prune", "the", "new", "one", "at", "the", "same", "place", ".", "If" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3491-L3500
29,310
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlNode.textConcat
def textConcat(self, content, len): """Concat the given string at the end of the existing node content """ ret = libxml2mod.xmlTextConcat(self._o, content, len) return ret
python
def textConcat(self, content, len): """Concat the given string at the end of the existing node content """ ret = libxml2mod.xmlTextConcat(self._o, content, len) return ret
[ "def", "textConcat", "(", "self", ",", "content", ",", "len", ")", ":", "ret", "=", "libxml2mod", ".", "xmlTextConcat", "(", "self", ".", "_o", ",", "content", ",", "len", ")", "return", "ret" ]
Concat the given string at the end of the existing node content
[ "Concat", "the", "given", "string", "at", "the", "end", "of", "the", "existing", "node", "content" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3600-L3604
29,311
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlNode.textMerge
def textMerge(self, second): """Merge two text nodes into one """ if second is None: second__o = None else: second__o = second._o ret = libxml2mod.xmlTextMerge(self._o, second__o) if ret is None:raise treeError('xmlTextMerge() failed') __tmp = xmlNode(_obj=ret) return __tmp
python
def textMerge(self, second): """Merge two text nodes into one """ if second is None: second__o = None else: second__o = second._o ret = libxml2mod.xmlTextMerge(self._o, second__o) if ret is None:raise treeError('xmlTextMerge() failed') __tmp = xmlNode(_obj=ret) return __tmp
[ "def", "textMerge", "(", "self", ",", "second", ")", ":", "if", "second", "is", "None", ":", "second__o", "=", "None", "else", ":", "second__o", "=", "second", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlTextMerge", "(", "self", ".", "_o", ",", "second__o", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlTextMerge() failed'", ")", "__tmp", "=", "xmlNode", "(", "_obj", "=", "ret", ")", "return", "__tmp" ]
Merge two text nodes into one
[ "Merge", "two", "text", "nodes", "into", "one" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3606-L3613
29,312
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlNode.unsetProp
def unsetProp(self, name): """Remove an attribute carried by a node. This handles only attributes in no namespace. """ ret = libxml2mod.xmlUnsetProp(self._o, name) return ret
python
def unsetProp(self, name): """Remove an attribute carried by a node. This handles only attributes in no namespace. """ ret = libxml2mod.xmlUnsetProp(self._o, name) return ret
[ "def", "unsetProp", "(", "self", ",", "name", ")", ":", "ret", "=", "libxml2mod", ".", "xmlUnsetProp", "(", "self", ".", "_o", ",", "name", ")", "return", "ret" ]
Remove an attribute carried by a node. This handles only attributes in no namespace.
[ "Remove", "an", "attribute", "carried", "by", "a", "node", ".", "This", "handles", "only", "attributes", "in", "no", "namespace", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3630-L3634
29,313
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlNode.xincludeProcessTreeFlags
def xincludeProcessTreeFlags(self, flags): """Implement the XInclude substitution for the given subtree """ ret = libxml2mod.xmlXIncludeProcessTreeFlags(self._o, flags) return ret
python
def xincludeProcessTreeFlags(self, flags): """Implement the XInclude substitution for the given subtree """ ret = libxml2mod.xmlXIncludeProcessTreeFlags(self._o, flags) return ret
[ "def", "xincludeProcessTreeFlags", "(", "self", ",", "flags", ")", ":", "ret", "=", "libxml2mod", ".", "xmlXIncludeProcessTreeFlags", "(", "self", ".", "_o", ",", "flags", ")", "return", "ret" ]
Implement the XInclude substitution for the given subtree
[ "Implement", "the", "XInclude", "substitution", "for", "the", "given", "subtree" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3684-L3687
29,314
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlNode.xpathCmpNodes
def xpathCmpNodes(self, node2): """Compare two nodes w.r.t document order """ if node2 is None: node2__o = None else: node2__o = node2._o ret = libxml2mod.xmlXPathCmpNodes(self._o, node2__o) return ret
python
def xpathCmpNodes(self, node2): """Compare two nodes w.r.t document order """ if node2 is None: node2__o = None else: node2__o = node2._o ret = libxml2mod.xmlXPathCmpNodes(self._o, node2__o) return ret
[ "def", "xpathCmpNodes", "(", "self", ",", "node2", ")", ":", "if", "node2", "is", "None", ":", "node2__o", "=", "None", "else", ":", "node2__o", "=", "node2", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlXPathCmpNodes", "(", "self", ".", "_o", ",", "node2__o", ")", "return", "ret" ]
Compare two nodes w.r.t document order
[ "Compare", "two", "nodes", "w", ".", "r", ".", "t", "document", "order" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3714-L3719
29,315
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlNode.xpathNodeEval
def xpathNodeEval(self, str, ctx): """Evaluate the XPath Location Path in the given context. The node 'node' is set as the context node. The context node is not restored. """ if ctx is None: ctx__o = None else: ctx__o = ctx._o ret = libxml2mod.xmlXPathNodeEval(self._o, str, ctx__o) if ret is None:raise xpathError('xmlXPathNodeEval() failed') return xpathObjectRet(ret)
python
def xpathNodeEval(self, str, ctx): """Evaluate the XPath Location Path in the given context. The node 'node' is set as the context node. The context node is not restored. """ if ctx is None: ctx__o = None else: ctx__o = ctx._o ret = libxml2mod.xmlXPathNodeEval(self._o, str, ctx__o) if ret is None:raise xpathError('xmlXPathNodeEval() failed') return xpathObjectRet(ret)
[ "def", "xpathNodeEval", "(", "self", ",", "str", ",", "ctx", ")", ":", "if", "ctx", "is", "None", ":", "ctx__o", "=", "None", "else", ":", "ctx__o", "=", "ctx", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlXPathNodeEval", "(", "self", ".", "_o", ",", "str", ",", "ctx__o", ")", "if", "ret", "is", "None", ":", "raise", "xpathError", "(", "'xmlXPathNodeEval() failed'", ")", "return", "xpathObjectRet", "(", "ret", ")" ]
Evaluate the XPath Location Path in the given context. The node 'node' is set as the context node. The context node is not restored.
[ "Evaluate", "the", "XPath", "Location", "Path", "in", "the", "given", "context", ".", "The", "node", "node", "is", "set", "as", "the", "context", "node", ".", "The", "context", "node", "is", "not", "restored", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3721-L3729
29,316
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlNode.xpathNewNodeSet
def xpathNewNodeSet(self): """Create a new xmlXPathObjectPtr of type NodeSet and initialize it with the single Node @val """ ret = libxml2mod.xmlXPathNewNodeSet(self._o) if ret is None:raise xpathError('xmlXPathNewNodeSet() failed') return xpathObjectRet(ret)
python
def xpathNewNodeSet(self): """Create a new xmlXPathObjectPtr of type NodeSet and initialize it with the single Node @val """ ret = libxml2mod.xmlXPathNewNodeSet(self._o) if ret is None:raise xpathError('xmlXPathNewNodeSet() failed') return xpathObjectRet(ret)
[ "def", "xpathNewNodeSet", "(", "self", ")", ":", "ret", "=", "libxml2mod", ".", "xmlXPathNewNodeSet", "(", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "raise", "xpathError", "(", "'xmlXPathNewNodeSet() failed'", ")", "return", "xpathObjectRet", "(", "ret", ")" ]
Create a new xmlXPathObjectPtr of type NodeSet and initialize it with the single Node @val
[ "Create", "a", "new", "xmlXPathObjectPtr", "of", "type", "NodeSet", "and", "initialize", "it", "with", "the", "single", "Node" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3735-L3740
29,317
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlNode.xpointerNewCollapsedRange
def xpointerNewCollapsedRange(self): """Create a new xmlXPathObjectPtr of type range using a single nodes """ ret = libxml2mod.xmlXPtrNewCollapsedRange(self._o) if ret is None:raise treeError('xmlXPtrNewCollapsedRange() failed') return xpathObjectRet(ret)
python
def xpointerNewCollapsedRange(self): """Create a new xmlXPathObjectPtr of type range using a single nodes """ ret = libxml2mod.xmlXPtrNewCollapsedRange(self._o) if ret is None:raise treeError('xmlXPtrNewCollapsedRange() failed') return xpathObjectRet(ret)
[ "def", "xpointerNewCollapsedRange", "(", "self", ")", ":", "ret", "=", "libxml2mod", ".", "xmlXPtrNewCollapsedRange", "(", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlXPtrNewCollapsedRange() failed'", ")", "return", "xpathObjectRet", "(", "ret", ")" ]
Create a new xmlXPathObjectPtr of type range using a single nodes
[ "Create", "a", "new", "xmlXPathObjectPtr", "of", "type", "range", "using", "a", "single", "nodes" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3915-L3920
29,318
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlNode.xpointerNewLocationSetNodes
def xpointerNewLocationSetNodes(self, end): """Create a new xmlXPathObjectPtr of type LocationSet and initialize it with the single range made of the two nodes @start and @end """ if end is None: end__o = None else: end__o = end._o ret = libxml2mod.xmlXPtrNewLocationSetNodes(self._o, end__o) if ret is None:raise treeError('xmlXPtrNewLocationSetNodes() failed') return xpathObjectRet(ret)
python
def xpointerNewLocationSetNodes(self, end): """Create a new xmlXPathObjectPtr of type LocationSet and initialize it with the single range made of the two nodes @start and @end """ if end is None: end__o = None else: end__o = end._o ret = libxml2mod.xmlXPtrNewLocationSetNodes(self._o, end__o) if ret is None:raise treeError('xmlXPtrNewLocationSetNodes() failed') return xpathObjectRet(ret)
[ "def", "xpointerNewLocationSetNodes", "(", "self", ",", "end", ")", ":", "if", "end", "is", "None", ":", "end__o", "=", "None", "else", ":", "end__o", "=", "end", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlXPtrNewLocationSetNodes", "(", "self", ".", "_o", ",", "end__o", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlXPtrNewLocationSetNodes() failed'", ")", "return", "xpathObjectRet", "(", "ret", ")" ]
Create a new xmlXPathObjectPtr of type LocationSet and initialize it with the single range made of the two nodes @start and @end
[ "Create", "a", "new", "xmlXPathObjectPtr", "of", "type", "LocationSet", "and", "initialize", "it", "with", "the", "single", "range", "made", "of", "the", "two", "nodes" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3933-L3941
29,319
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlNode.xpointerNewRange
def xpointerNewRange(self, startindex, end, endindex): """Create a new xmlXPathObjectPtr of type range """ if end is None: end__o = None else: end__o = end._o ret = libxml2mod.xmlXPtrNewRange(self._o, startindex, end__o, endindex) if ret is None:raise treeError('xmlXPtrNewRange() failed') return xpathObjectRet(ret)
python
def xpointerNewRange(self, startindex, end, endindex): """Create a new xmlXPathObjectPtr of type range """ if end is None: end__o = None else: end__o = end._o ret = libxml2mod.xmlXPtrNewRange(self._o, startindex, end__o, endindex) if ret is None:raise treeError('xmlXPtrNewRange() failed') return xpathObjectRet(ret)
[ "def", "xpointerNewRange", "(", "self", ",", "startindex", ",", "end", ",", "endindex", ")", ":", "if", "end", "is", "None", ":", "end__o", "=", "None", "else", ":", "end__o", "=", "end", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlXPtrNewRange", "(", "self", ".", "_o", ",", "startindex", ",", "end__o", ",", "endindex", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlXPtrNewRange() failed'", ")", "return", "xpathObjectRet", "(", "ret", ")" ]
Create a new xmlXPathObjectPtr of type range
[ "Create", "a", "new", "xmlXPathObjectPtr", "of", "type", "range" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3943-L3949
29,320
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlNode.xpointerNewRangeNodes
def xpointerNewRangeNodes(self, end): """Create a new xmlXPathObjectPtr of type range using 2 nodes """ if end is None: end__o = None else: end__o = end._o ret = libxml2mod.xmlXPtrNewRangeNodes(self._o, end__o) if ret is None:raise treeError('xmlXPtrNewRangeNodes() failed') return xpathObjectRet(ret)
python
def xpointerNewRangeNodes(self, end): """Create a new xmlXPathObjectPtr of type range using 2 nodes """ if end is None: end__o = None else: end__o = end._o ret = libxml2mod.xmlXPtrNewRangeNodes(self._o, end__o) if ret is None:raise treeError('xmlXPtrNewRangeNodes() failed') return xpathObjectRet(ret)
[ "def", "xpointerNewRangeNodes", "(", "self", ",", "end", ")", ":", "if", "end", "is", "None", ":", "end__o", "=", "None", "else", ":", "end__o", "=", "end", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlXPtrNewRangeNodes", "(", "self", ".", "_o", ",", "end__o", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlXPtrNewRangeNodes() failed'", ")", "return", "xpathObjectRet", "(", "ret", ")" ]
Create a new xmlXPathObjectPtr of type range using 2 nodes
[ "Create", "a", "new", "xmlXPathObjectPtr", "of", "type", "range", "using", "2", "nodes" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3951-L3957
29,321
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.htmlAutoCloseTag
def htmlAutoCloseTag(self, name, elem): """The HTML DTD allows a tag to implicitly close other tags. The list is kept in htmlStartClose array. This function checks if the element or one of it's children would autoclose the given tag. """ ret = libxml2mod.htmlAutoCloseTag(self._o, name, elem) return ret
python
def htmlAutoCloseTag(self, name, elem): """The HTML DTD allows a tag to implicitly close other tags. The list is kept in htmlStartClose array. This function checks if the element or one of it's children would autoclose the given tag. """ ret = libxml2mod.htmlAutoCloseTag(self._o, name, elem) return ret
[ "def", "htmlAutoCloseTag", "(", "self", ",", "name", ",", "elem", ")", ":", "ret", "=", "libxml2mod", ".", "htmlAutoCloseTag", "(", "self", ".", "_o", ",", "name", ",", "elem", ")", "return", "ret" ]
The HTML DTD allows a tag to implicitly close other tags. The list is kept in htmlStartClose array. This function checks if the element or one of it's children would autoclose the given tag.
[ "The", "HTML", "DTD", "allows", "a", "tag", "to", "implicitly", "close", "other", "tags", ".", "The", "list", "is", "kept", "in", "htmlStartClose", "array", ".", "This", "function", "checks", "if", "the", "element", "or", "one", "of", "it", "s", "children", "would", "autoclose", "the", "given", "tag", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3972-L3978
29,322
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.htmlIsAutoClosed
def htmlIsAutoClosed(self, elem): """The HTML DTD allows a tag to implicitly close other tags. The list is kept in htmlStartClose array. This function checks if a tag is autoclosed by one of it's child """ ret = libxml2mod.htmlIsAutoClosed(self._o, elem) return ret
python
def htmlIsAutoClosed(self, elem): """The HTML DTD allows a tag to implicitly close other tags. The list is kept in htmlStartClose array. This function checks if a tag is autoclosed by one of it's child """ ret = libxml2mod.htmlIsAutoClosed(self._o, elem) return ret
[ "def", "htmlIsAutoClosed", "(", "self", ",", "elem", ")", ":", "ret", "=", "libxml2mod", ".", "htmlIsAutoClosed", "(", "self", ".", "_o", ",", "elem", ")", "return", "ret" ]
The HTML DTD allows a tag to implicitly close other tags. The list is kept in htmlStartClose array. This function checks if a tag is autoclosed by one of it's child
[ "The", "HTML", "DTD", "allows", "a", "tag", "to", "implicitly", "close", "other", "tags", ".", "The", "list", "is", "kept", "in", "htmlStartClose", "array", ".", "This", "function", "checks", "if", "a", "tag", "is", "autoclosed", "by", "one", "of", "it", "s", "child" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L3980-L3985
29,323
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.htmlDocDump
def htmlDocDump(self, f): """Dump an HTML document to an open FILE. """ ret = libxml2mod.htmlDocDump(f, self._o) return ret
python
def htmlDocDump(self, f): """Dump an HTML document to an open FILE. """ ret = libxml2mod.htmlDocDump(f, self._o) return ret
[ "def", "htmlDocDump", "(", "self", ",", "f", ")", ":", "ret", "=", "libxml2mod", ".", "htmlDocDump", "(", "f", ",", "self", ".", "_o", ")", "return", "ret" ]
Dump an HTML document to an open FILE.
[ "Dump", "an", "HTML", "document", "to", "an", "open", "FILE", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4003-L4006
29,324
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.htmlNodeDumpFile
def htmlNodeDumpFile(self, out, cur): """Dump an HTML node, recursive behaviour,children are printed too, and formatting returns are added. """ if cur is None: cur__o = None else: cur__o = cur._o libxml2mod.htmlNodeDumpFile(out, self._o, cur__o)
python
def htmlNodeDumpFile(self, out, cur): """Dump an HTML node, recursive behaviour,children are printed too, and formatting returns are added. """ if cur is None: cur__o = None else: cur__o = cur._o libxml2mod.htmlNodeDumpFile(out, self._o, cur__o)
[ "def", "htmlNodeDumpFile", "(", "self", ",", "out", ",", "cur", ")", ":", "if", "cur", "is", "None", ":", "cur__o", "=", "None", "else", ":", "cur__o", "=", "cur", ".", "_o", "libxml2mod", ".", "htmlNodeDumpFile", "(", "out", ",", "self", ".", "_o", ",", "cur__o", ")" ]
Dump an HTML node, recursive behaviour,children are printed too, and formatting returns are added.
[ "Dump", "an", "HTML", "node", "recursive", "behaviour", "children", "are", "printed", "too", "and", "formatting", "returns", "are", "added", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4013-L4018
29,325
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.htmlSaveFile
def htmlSaveFile(self, filename): """Dump an HTML document to a file. If @filename is "-" the stdout file is used. """ ret = libxml2mod.htmlSaveFile(filename, self._o) return ret
python
def htmlSaveFile(self, filename): """Dump an HTML document to a file. If @filename is "-" the stdout file is used. """ ret = libxml2mod.htmlSaveFile(filename, self._o) return ret
[ "def", "htmlSaveFile", "(", "self", ",", "filename", ")", ":", "ret", "=", "libxml2mod", ".", "htmlSaveFile", "(", "filename", ",", "self", ".", "_o", ")", "return", "ret" ]
Dump an HTML document to a file. If @filename is "-" the stdout file is used.
[ "Dump", "an", "HTML", "document", "to", "a", "file", ".", "If" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4047-L4051
29,326
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.htmlSaveFileFormat
def htmlSaveFileFormat(self, filename, encoding, format): """Dump an HTML document to a file using a given encoding. """ ret = libxml2mod.htmlSaveFileFormat(filename, self._o, encoding, format) return ret
python
def htmlSaveFileFormat(self, filename, encoding, format): """Dump an HTML document to a file using a given encoding. """ ret = libxml2mod.htmlSaveFileFormat(filename, self._o, encoding, format) return ret
[ "def", "htmlSaveFileFormat", "(", "self", ",", "filename", ",", "encoding", ",", "format", ")", ":", "ret", "=", "libxml2mod", ".", "htmlSaveFileFormat", "(", "filename", ",", "self", ".", "_o", ",", "encoding", ",", "format", ")", "return", "ret" ]
Dump an HTML document to a file using a given encoding.
[ "Dump", "an", "HTML", "document", "to", "a", "file", "using", "a", "given", "encoding", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4059-L4062
29,327
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.debugCheckDocument
def debugCheckDocument(self, output): """Check the document for potential content problems, and output the errors to @output """ ret = libxml2mod.xmlDebugCheckDocument(output, self._o) return ret
python
def debugCheckDocument(self, output): """Check the document for potential content problems, and output the errors to @output """ ret = libxml2mod.xmlDebugCheckDocument(output, self._o) return ret
[ "def", "debugCheckDocument", "(", "self", ",", "output", ")", ":", "ret", "=", "libxml2mod", ".", "xmlDebugCheckDocument", "(", "output", ",", "self", ".", "_o", ")", "return", "ret" ]
Check the document for potential content problems, and output the errors to @output
[ "Check", "the", "document", "for", "potential", "content", "problems", "and", "output", "the", "errors", "to" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4075-L4079
29,328
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.addDocEntity
def addDocEntity(self, name, type, ExternalID, SystemID, content): """Register a new entity for this document. """ ret = libxml2mod.xmlAddDocEntity(self._o, name, type, ExternalID, SystemID, content) if ret is None:raise treeError('xmlAddDocEntity() failed') __tmp = xmlEntity(_obj=ret) return __tmp
python
def addDocEntity(self, name, type, ExternalID, SystemID, content): """Register a new entity for this document. """ ret = libxml2mod.xmlAddDocEntity(self._o, name, type, ExternalID, SystemID, content) if ret is None:raise treeError('xmlAddDocEntity() failed') __tmp = xmlEntity(_obj=ret) return __tmp
[ "def", "addDocEntity", "(", "self", ",", "name", ",", "type", ",", "ExternalID", ",", "SystemID", ",", "content", ")", ":", "ret", "=", "libxml2mod", ".", "xmlAddDocEntity", "(", "self", ".", "_o", ",", "name", ",", "type", ",", "ExternalID", ",", "SystemID", ",", "content", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlAddDocEntity() failed'", ")", "__tmp", "=", "xmlEntity", "(", "_obj", "=", "ret", ")", "return", "__tmp" ]
Register a new entity for this document.
[ "Register", "a", "new", "entity", "for", "this", "document", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4099-L4104
29,329
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.addDtdEntity
def addDtdEntity(self, name, type, ExternalID, SystemID, content): """Register a new entity for this document DTD external subset. """ ret = libxml2mod.xmlAddDtdEntity(self._o, name, type, ExternalID, SystemID, content) if ret is None:raise treeError('xmlAddDtdEntity() failed') __tmp = xmlEntity(_obj=ret) return __tmp
python
def addDtdEntity(self, name, type, ExternalID, SystemID, content): """Register a new entity for this document DTD external subset. """ ret = libxml2mod.xmlAddDtdEntity(self._o, name, type, ExternalID, SystemID, content) if ret is None:raise treeError('xmlAddDtdEntity() failed') __tmp = xmlEntity(_obj=ret) return __tmp
[ "def", "addDtdEntity", "(", "self", ",", "name", ",", "type", ",", "ExternalID", ",", "SystemID", ",", "content", ")", ":", "ret", "=", "libxml2mod", ".", "xmlAddDtdEntity", "(", "self", ".", "_o", ",", "name", ",", "type", ",", "ExternalID", ",", "SystemID", ",", "content", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlAddDtdEntity() failed'", ")", "__tmp", "=", "xmlEntity", "(", "_obj", "=", "ret", ")", "return", "__tmp" ]
Register a new entity for this document DTD external subset.
[ "Register", "a", "new", "entity", "for", "this", "document", "DTD", "external", "subset", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4106-L4111
29,330
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.docEntity
def docEntity(self, name): """Do an entity lookup in the document entity hash table and """ ret = libxml2mod.xmlGetDocEntity(self._o, name) if ret is None:raise treeError('xmlGetDocEntity() failed') __tmp = xmlEntity(_obj=ret) return __tmp
python
def docEntity(self, name): """Do an entity lookup in the document entity hash table and """ ret = libxml2mod.xmlGetDocEntity(self._o, name) if ret is None:raise treeError('xmlGetDocEntity() failed') __tmp = xmlEntity(_obj=ret) return __tmp
[ "def", "docEntity", "(", "self", ",", "name", ")", ":", "ret", "=", "libxml2mod", ".", "xmlGetDocEntity", "(", "self", ".", "_o", ",", "name", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlGetDocEntity() failed'", ")", "__tmp", "=", "xmlEntity", "(", "_obj", "=", "ret", ")", "return", "__tmp" ]
Do an entity lookup in the document entity hash table and
[ "Do", "an", "entity", "lookup", "in", "the", "document", "entity", "hash", "table", "and" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4113-L4118
29,331
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.dtdEntity
def dtdEntity(self, name): """Do an entity lookup in the DTD entity hash table and """ ret = libxml2mod.xmlGetDtdEntity(self._o, name) if ret is None:raise treeError('xmlGetDtdEntity() failed') __tmp = xmlEntity(_obj=ret) return __tmp
python
def dtdEntity(self, name): """Do an entity lookup in the DTD entity hash table and """ ret = libxml2mod.xmlGetDtdEntity(self._o, name) if ret is None:raise treeError('xmlGetDtdEntity() failed') __tmp = xmlEntity(_obj=ret) return __tmp
[ "def", "dtdEntity", "(", "self", ",", "name", ")", ":", "ret", "=", "libxml2mod", ".", "xmlGetDtdEntity", "(", "self", ".", "_o", ",", "name", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlGetDtdEntity() failed'", ")", "__tmp", "=", "xmlEntity", "(", "_obj", "=", "ret", ")", "return", "__tmp" ]
Do an entity lookup in the DTD entity hash table and
[ "Do", "an", "entity", "lookup", "in", "the", "DTD", "entity", "hash", "table", "and" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4120-L4125
29,332
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.encodeEntitiesReentrant
def encodeEntitiesReentrant(self, input): """Do a global encoding of a string, replacing the predefined entities and non ASCII values with their entities and CharRef counterparts. Contrary to xmlEncodeEntities, this routine is reentrant, and result must be deallocated. """ ret = libxml2mod.xmlEncodeEntitiesReentrant(self._o, input) return ret
python
def encodeEntitiesReentrant(self, input): """Do a global encoding of a string, replacing the predefined entities and non ASCII values with their entities and CharRef counterparts. Contrary to xmlEncodeEntities, this routine is reentrant, and result must be deallocated. """ ret = libxml2mod.xmlEncodeEntitiesReentrant(self._o, input) return ret
[ "def", "encodeEntitiesReentrant", "(", "self", ",", "input", ")", ":", "ret", "=", "libxml2mod", ".", "xmlEncodeEntitiesReentrant", "(", "self", ".", "_o", ",", "input", ")", "return", "ret" ]
Do a global encoding of a string, replacing the predefined entities and non ASCII values with their entities and CharRef counterparts. Contrary to xmlEncodeEntities, this routine is reentrant, and result must be deallocated.
[ "Do", "a", "global", "encoding", "of", "a", "string", "replacing", "the", "predefined", "entities", "and", "non", "ASCII", "values", "with", "their", "entities", "and", "CharRef", "counterparts", ".", "Contrary", "to", "xmlEncodeEntities", "this", "routine", "is", "reentrant", "and", "result", "must", "be", "deallocated", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4135-L4141
29,333
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.encodeSpecialChars
def encodeSpecialChars(self, input): """Do a global encoding of a string, replacing the predefined entities this routine is reentrant, and result must be deallocated. """ ret = libxml2mod.xmlEncodeSpecialChars(self._o, input) return ret
python
def encodeSpecialChars(self, input): """Do a global encoding of a string, replacing the predefined entities this routine is reentrant, and result must be deallocated. """ ret = libxml2mod.xmlEncodeSpecialChars(self._o, input) return ret
[ "def", "encodeSpecialChars", "(", "self", ",", "input", ")", ":", "ret", "=", "libxml2mod", ".", "xmlEncodeSpecialChars", "(", "self", ".", "_o", ",", "input", ")", "return", "ret" ]
Do a global encoding of a string, replacing the predefined entities this routine is reentrant, and result must be deallocated.
[ "Do", "a", "global", "encoding", "of", "a", "string", "replacing", "the", "predefined", "entities", "this", "routine", "is", "reentrant", "and", "result", "must", "be", "deallocated", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4143-L4148
29,334
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.parameterEntity
def parameterEntity(self, name): """Do an entity lookup in the internal and external subsets and """ ret = libxml2mod.xmlGetParameterEntity(self._o, name) if ret is None:raise treeError('xmlGetParameterEntity() failed') __tmp = xmlEntity(_obj=ret) return __tmp
python
def parameterEntity(self, name): """Do an entity lookup in the internal and external subsets and """ ret = libxml2mod.xmlGetParameterEntity(self._o, name) if ret is None:raise treeError('xmlGetParameterEntity() failed') __tmp = xmlEntity(_obj=ret) return __tmp
[ "def", "parameterEntity", "(", "self", ",", "name", ")", ":", "ret", "=", "libxml2mod", ".", "xmlGetParameterEntity", "(", "self", ".", "_o", ",", "name", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlGetParameterEntity() failed'", ")", "__tmp", "=", "xmlEntity", "(", "_obj", "=", "ret", ")", "return", "__tmp" ]
Do an entity lookup in the internal and external subsets and
[ "Do", "an", "entity", "lookup", "in", "the", "internal", "and", "external", "subsets", "and" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4162-L4167
29,335
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.copyDoc
def copyDoc(self, recursive): """Do a copy of the document info. If recursive, the content tree will be copied too as well as DTD, namespaces and entities. """ ret = libxml2mod.xmlCopyDoc(self._o, recursive) if ret is None:raise treeError('xmlCopyDoc() failed') __tmp = xmlDoc(_obj=ret) return __tmp
python
def copyDoc(self, recursive): """Do a copy of the document info. If recursive, the content tree will be copied too as well as DTD, namespaces and entities. """ ret = libxml2mod.xmlCopyDoc(self._o, recursive) if ret is None:raise treeError('xmlCopyDoc() failed') __tmp = xmlDoc(_obj=ret) return __tmp
[ "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 tree will be copied too as well as DTD, namespaces and entities.
[ "Do", "a", "copy", "of", "the", "document", "info", ".", "If", "recursive", "the", "content", "tree", "will", "be", "copied", "too", "as", "well", "as", "DTD", "namespaces", "and", "entities", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4223-L4230
29,336
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.createIntSubset
def createIntSubset(self, name, ExternalID, SystemID): """Create the internal subset of a document """ ret = libxml2mod.xmlCreateIntSubset(self._o, name, ExternalID, SystemID) if ret is None:raise treeError('xmlCreateIntSubset() failed') __tmp = xmlDtd(_obj=ret) return __tmp
python
def createIntSubset(self, name, ExternalID, SystemID): """Create the internal subset of a document """ ret = libxml2mod.xmlCreateIntSubset(self._o, name, ExternalID, SystemID) if ret is None:raise treeError('xmlCreateIntSubset() failed') __tmp = xmlDtd(_obj=ret) return __tmp
[ "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
[ "Create", "the", "internal", "subset", "of", "a", "document" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4250-L4255
29,337
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.intSubset
def intSubset(self): """Get the internal subset of a document """ ret = libxml2mod.xmlGetIntSubset(self._o) if ret is None:raise treeError('xmlGetIntSubset() failed') __tmp = xmlDtd(_obj=ret) return __tmp
python
def intSubset(self): """Get the internal subset of a document """ ret = libxml2mod.xmlGetIntSubset(self._o) if ret is None:raise treeError('xmlGetIntSubset() failed') __tmp = xmlDtd(_obj=ret) return __tmp
[ "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
[ "Get", "the", "internal", "subset", "of", "a", "document" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4292-L4297
29,338
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.newCDataBlock
def newCDataBlock(self, content, len): """Creation of a new node containing a CDATA block. """ ret = libxml2mod.xmlNewCDataBlock(self._o, content, len) if ret is None:raise treeError('xmlNewCDataBlock() failed') __tmp = xmlNode(_obj=ret) return __tmp
python
def newCDataBlock(self, content, len): """Creation of a new node containing a CDATA block. """ ret = libxml2mod.xmlNewCDataBlock(self._o, content, len) if ret is None:raise treeError('xmlNewCDataBlock() failed') __tmp = xmlNode(_obj=ret) return __tmp
[ "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.
[ "Creation", "of", "a", "new", "node", "containing", "a", "CDATA", "block", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4299-L4304
29,339
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.newCharRef
def newCharRef(self, name): """Creation of a new character reference node. """ ret = libxml2mod.xmlNewCharRef(self._o, name) if ret is None:raise treeError('xmlNewCharRef() failed') __tmp = xmlNode(_obj=ret) return __tmp
python
def newCharRef(self, name): """Creation of a new character reference node. """ ret = libxml2mod.xmlNewCharRef(self._o, name) if ret is None:raise treeError('xmlNewCharRef() failed') __tmp = xmlNode(_obj=ret) return __tmp
[ "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.
[ "Creation", "of", "a", "new", "character", "reference", "node", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4306-L4311
29,340
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.newDocComment
def newDocComment(self, content): """Creation of a new node containing a comment within a document. """ ret = libxml2mod.xmlNewDocComment(self._o, content) if ret is None:raise treeError('xmlNewDocComment() failed') __tmp = xmlNode(_obj=ret) return __tmp
python
def newDocComment(self, content): """Creation of a new node containing a comment within a document. """ ret = libxml2mod.xmlNewDocComment(self._o, content) if ret is None:raise treeError('xmlNewDocComment() failed') __tmp = xmlNode(_obj=ret) return __tmp
[ "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 document.
[ "Creation", "of", "a", "new", "node", "containing", "a", "comment", "within", "a", "document", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4313-L4319
29,341
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.newDocFragment
def newDocFragment(self): """Creation of a new Fragment node. """ ret = libxml2mod.xmlNewDocFragment(self._o) if ret is None:raise treeError('xmlNewDocFragment() failed') __tmp = xmlNode(_obj=ret) return __tmp
python
def newDocFragment(self): """Creation of a new Fragment node. """ ret = libxml2mod.xmlNewDocFragment(self._o) if ret is None:raise treeError('xmlNewDocFragment() failed') __tmp = xmlNode(_obj=ret) return __tmp
[ "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.
[ "Creation", "of", "a", "new", "Fragment", "node", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4321-L4326
29,342
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.newDocPI
def newDocPI(self, name, content): """Creation of a processing instruction element. """ ret = libxml2mod.xmlNewDocPI(self._o, name, content) if ret is None:raise treeError('xmlNewDocPI() failed') __tmp = xmlNode(_obj=ret) return __tmp
python
def newDocPI(self, name, content): """Creation of a processing instruction element. """ ret = libxml2mod.xmlNewDocPI(self._o, name, content) if ret is None:raise treeError('xmlNewDocPI() failed') __tmp = xmlNode(_obj=ret) return __tmp
[ "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.
[ "Creation", "of", "a", "processing", "instruction", "element", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4356-L4361
29,343
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.newDocProp
def newDocProp(self, name, value): """Create a new property carried by a document. """ ret = libxml2mod.xmlNewDocProp(self._o, name, value) if ret is None:raise treeError('xmlNewDocProp() failed') __tmp = xmlAttr(_obj=ret) return __tmp
python
def newDocProp(self, name, value): """Create a new property carried by a document. """ ret = libxml2mod.xmlNewDocProp(self._o, name, value) if ret is None:raise treeError('xmlNewDocProp() failed') __tmp = xmlAttr(_obj=ret) return __tmp
[ "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.
[ "Create", "a", "new", "property", "carried", "by", "a", "document", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4363-L4368
29,344
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.newDocText
def newDocText(self, content): """Creation of a new text node within a document. """ ret = libxml2mod.xmlNewDocText(self._o, content) if ret is None:raise treeError('xmlNewDocText() failed') __tmp = xmlNode(_obj=ret) return __tmp
python
def newDocText(self, content): """Creation of a new text node within a document. """ ret = libxml2mod.xmlNewDocText(self._o, content) if ret is None:raise treeError('xmlNewDocText() failed') __tmp = xmlNode(_obj=ret) return __tmp
[ "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.
[ "Creation", "of", "a", "new", "text", "node", "within", "a", "document", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4380-L4385
29,345
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.newDocTextLen
def newDocTextLen(self, content, len): """Creation of a new text node with an extra content length parameter. The text node pertain to a given document. """ ret = libxml2mod.xmlNewDocTextLen(self._o, content, len) if ret is None:raise treeError('xmlNewDocTextLen() failed') __tmp = xmlNode(_obj=ret) return __tmp
python
def newDocTextLen(self, content, len): """Creation of a new text node with an extra content length parameter. The text node pertain to a given document. """ ret = libxml2mod.xmlNewDocTextLen(self._o, content, len) if ret is None:raise treeError('xmlNewDocTextLen() failed') __tmp = xmlNode(_obj=ret) return __tmp
[ "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 parameter. The text node pertain to a given document.
[ "Creation", "of", "a", "new", "text", "node", "with", "an", "extra", "content", "length", "parameter", ".", "The", "text", "node", "pertain", "to", "a", "given", "document", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4387-L4393
29,346
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.newGlobalNs
def newGlobalNs(self, href, prefix): """Creation of a Namespace, the old way using PI and without scoping DEPRECATED !!! """ ret = libxml2mod.xmlNewGlobalNs(self._o, href, prefix) if ret is None:raise treeError('xmlNewGlobalNs() failed') __tmp = xmlNs(_obj=ret) return __tmp
python
def newGlobalNs(self, href, prefix): """Creation of a Namespace, the old way using PI and without scoping DEPRECATED !!! """ ret = libxml2mod.xmlNewGlobalNs(self._o, href, prefix) if ret is None:raise treeError('xmlNewGlobalNs() failed') __tmp = xmlNs(_obj=ret) return __tmp
[ "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 scoping DEPRECATED !!!
[ "Creation", "of", "a", "Namespace", "the", "old", "way", "using", "PI", "and", "without", "scoping", "DEPRECATED", "!!!" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4403-L4409
29,347
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.newReference
def newReference(self, name): """Creation of a new reference node. """ ret = libxml2mod.xmlNewReference(self._o, name) if ret is None:raise treeError('xmlNewReference() failed') __tmp = xmlNode(_obj=ret) return __tmp
python
def newReference(self, name): """Creation of a new reference node. """ ret = libxml2mod.xmlNewReference(self._o, name) if ret is None:raise treeError('xmlNewReference() failed') __tmp = xmlNode(_obj=ret) return __tmp
[ "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.
[ "Creation", "of", "a", "new", "reference", "node", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4411-L4416
29,348
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.saveFileEnc
def saveFileEnc(self, filename, encoding): """Dump an XML document, converting it to the given encoding """ ret = libxml2mod.xmlSaveFileEnc(filename, self._o, encoding) return ret
python
def saveFileEnc(self, filename, encoding): """Dump an XML document, converting it to the given encoding """ ret = libxml2mod.xmlSaveFileEnc(filename, self._o, encoding) return ret
[ "def", "saveFileEnc", "(", "self", ",", "filename", ",", "encoding", ")", ":", "ret", "=", "libxml2mod", ".", "xmlSaveFileEnc", "(", "filename", ",", "self", ".", "_o", ",", "encoding", ")", "return", "ret" ]
Dump an XML document, converting it to the given encoding
[ "Dump", "an", "XML", "document", "converting", "it", "to", "the", "given", "encoding" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4481-L4484
29,349
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.saveFormatFileEnc
def saveFormatFileEnc(self, filename, encoding, format): """Dump an XML document to a file or an URL. """ ret = libxml2mod.xmlSaveFormatFileEnc(filename, self._o, encoding, format) return ret
python
def saveFormatFileEnc(self, filename, encoding, format): """Dump an XML document to a file or an URL. """ ret = libxml2mod.xmlSaveFormatFileEnc(filename, self._o, encoding, format) return ret
[ "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.
[ "Dump", "an", "XML", "document", "to", "a", "file", "or", "an", "URL", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4505-L4508
29,350
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.ID
def ID(self, ID): """Search the attribute declaring the given ID """ ret = libxml2mod.xmlGetID(self._o, ID) if ret is None:raise treeError('xmlGetID() failed') __tmp = xmlAttr(_obj=ret) return __tmp
python
def ID(self, ID): """Search the attribute declaring the given ID """ ret = libxml2mod.xmlGetID(self._o, ID) if ret is None:raise treeError('xmlGetID() failed') __tmp = xmlAttr(_obj=ret) return __tmp
[ "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
[ "Search", "the", "attribute", "declaring", "the", "given", "ID" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4593-L4598
29,351
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.xincludeProcessFlags
def xincludeProcessFlags(self, flags): """Implement the XInclude substitution on the XML document @doc """ ret = libxml2mod.xmlXIncludeProcessFlags(self._o, flags) return ret
python
def xincludeProcessFlags(self, flags): """Implement the XInclude substitution on the XML document @doc """ ret = libxml2mod.xmlXIncludeProcessFlags(self._o, flags) return ret
[ "def", "xincludeProcessFlags", "(", "self", ",", "flags", ")", ":", "ret", "=", "libxml2mod", ".", "xmlXIncludeProcessFlags", "(", "self", ".", "_o", ",", "flags", ")", "return", "ret" ]
Implement the XInclude substitution on the XML document @doc
[ "Implement", "the", "XInclude", "substitution", "on", "the", "XML", "document" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4822-L4825
29,352
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.readerWalker
def readerWalker(self): """Create an xmltextReader for a preparsed document. """ ret = libxml2mod.xmlReaderWalker(self._o) if ret is None:raise treeError('xmlReaderWalker() failed') __tmp = xmlTextReader(_obj=ret) return __tmp
python
def readerWalker(self): """Create an xmltextReader for a preparsed document. """ ret = libxml2mod.xmlReaderWalker(self._o) if ret is None:raise treeError('xmlReaderWalker() failed') __tmp = xmlTextReader(_obj=ret) return __tmp
[ "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.
[ "Create", "an", "xmltextReader", "for", "a", "preparsed", "document", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4839-L4844
29,353
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.schemaNewDocParserCtxt
def schemaNewDocParserCtxt(self): """Create an XML Schemas parse context for that document. NB. The document may be modified during the parsing process. """ ret = libxml2mod.xmlSchemaNewDocParserCtxt(self._o) if ret is None:raise parserError('xmlSchemaNewDocParserCtxt() failed') __tmp = SchemaParserCtxt(_obj=ret) return __tmp
python
def schemaNewDocParserCtxt(self): """Create an XML Schemas parse context for that document. NB. The document may be modified during the parsing process. """ ret = libxml2mod.xmlSchemaNewDocParserCtxt(self._o) if ret is None:raise parserError('xmlSchemaNewDocParserCtxt() failed') __tmp = SchemaParserCtxt(_obj=ret) return __tmp
[ "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. The document may be modified during the parsing process.
[ "Create", "an", "XML", "Schemas", "parse", "context", "for", "that", "document", ".", "NB", ".", "The", "document", "may", "be", "modified", "during", "the", "parsing", "process", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4850-L4856
29,354
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDoc.xpathNewContext
def xpathNewContext(self): """Create a new xmlXPathContext """ ret = libxml2mod.xmlXPathNewContext(self._o) if ret is None:raise xpathError('xmlXPathNewContext() failed') __tmp = xpathContext(_obj=ret) return __tmp
python
def xpathNewContext(self): """Create a new xmlXPathContext """ ret = libxml2mod.xmlXPathNewContext(self._o) if ret is None:raise xpathError('xmlXPathNewContext() failed') __tmp = xpathContext(_obj=ret) return __tmp
[ "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
[ "Create", "a", "new", "xmlXPathContext" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4869-L4874
29,355
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
parserCtxt.doc
def doc(self): """Get the document tree from a parser context. """ ret = libxml2mod.xmlParserGetDoc(self._o) if ret is None:raise parserError('xmlParserGetDoc() failed') __tmp = xmlDoc(_obj=ret) return __tmp
python
def doc(self): """Get the document tree from a parser context. """ ret = libxml2mod.xmlParserGetDoc(self._o) if ret is None:raise parserError('xmlParserGetDoc() failed') __tmp = xmlDoc(_obj=ret) return __tmp
[ "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.
[ "Get", "the", "document", "tree", "from", "a", "parser", "context", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4912-L4917
29,356
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
parserCtxt.htmlCtxtReadFd
def htmlCtxtReadFd(self, fd, URL, encoding, options): """parse an XML from a file descriptor and build a tree. This reuses the existing @ctxt parser context """ ret = libxml2mod.htmlCtxtReadFd(self._o, fd, URL, encoding, options) if ret is None:raise treeError('htmlCtxtReadFd() failed') __tmp = xmlDoc(_obj=ret) return __tmp
python
def htmlCtxtReadFd(self, fd, URL, encoding, options): """parse an XML from a file descriptor and build a tree. This reuses the existing @ctxt parser context """ ret = libxml2mod.htmlCtxtReadFd(self._o, fd, URL, encoding, options) if ret is None:raise treeError('htmlCtxtReadFd() failed') __tmp = xmlDoc(_obj=ret) return __tmp
[ "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 reuses the existing @ctxt parser context
[ "parse", "an", "XML", "from", "a", "file", "descriptor", "and", "build", "a", "tree", ".", "This", "reuses", "the", "existing" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L4961-L4967
29,357
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
parserCtxt.ctxtResetPush
def ctxtResetPush(self, chunk, size, filename, encoding): """Reset a push parser context """ ret = libxml2mod.xmlCtxtResetPush(self._o, chunk, size, filename, encoding) return ret
python
def ctxtResetPush(self, chunk, size, filename, encoding): """Reset a push parser context """ ret = libxml2mod.xmlCtxtResetPush(self._o, chunk, size, filename, encoding) return ret
[ "def", "ctxtResetPush", "(", "self", ",", "chunk", ",", "size", ",", "filename", ",", "encoding", ")", ":", "ret", "=", "libxml2mod", ".", "xmlCtxtResetPush", "(", "self", ".", "_o", ",", "chunk", ",", "size", ",", "filename", ",", "encoding", ")", "return", "ret" ]
Reset a push parser context
[ "Reset", "a", "push", "parser", "context" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5080-L5083
29,358
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
parserCtxt.setupParserForBuffer
def setupParserForBuffer(self, buffer, filename): """Setup the parser context to parse a new buffer; Clears any prior contents from the parser context. The buffer parameter must not be None, but the filename parameter can be """ libxml2mod.xmlSetupParserForBuffer(self._o, buffer, filename)
python
def setupParserForBuffer(self, buffer, filename): """Setup the parser context to parse a new buffer; Clears any prior contents from the parser context. The buffer parameter must not be None, but the filename parameter can be """ libxml2mod.xmlSetupParserForBuffer(self._o, buffer, filename)
[ "def", "setupParserForBuffer", "(", "self", ",", "buffer", ",", "filename", ")", ":", "libxml2mod", ".", "xmlSetupParserForBuffer", "(", "self", ".", "_o", ",", "buffer", ",", "filename", ")" ]
Setup the parser context to parse a new buffer; Clears any prior contents from the parser context. The buffer parameter must not be None, but the filename parameter can be
[ "Setup", "the", "parser", "context", "to", "parse", "a", "new", "buffer", ";", "Clears", "any", "prior", "contents", "from", "the", "parser", "context", ".", "The", "buffer", "parameter", "must", "not", "be", "None", "but", "the", "filename", "parameter", "can", "be" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5114-L5119
29,359
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlAttr.debugDumpAttr
def debugDumpAttr(self, output, depth): """Dumps debug information for the attribute """ libxml2mod.xmlDebugDumpAttr(output, self._o, depth)
python
def debugDumpAttr(self, output, depth): """Dumps debug information for the attribute """ libxml2mod.xmlDebugDumpAttr(output, self._o, depth)
[ "def", "debugDumpAttr", "(", "self", ",", "output", ",", "depth", ")", ":", "libxml2mod", ".", "xmlDebugDumpAttr", "(", "output", ",", "self", ".", "_o", ",", "depth", ")" ]
Dumps debug information for the attribute
[ "Dumps", "debug", "information", "for", "the", "attribute" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5573-L5575
29,360
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlAttr.debugDumpAttrList
def debugDumpAttrList(self, output, depth): """Dumps debug information for the attribute list """ libxml2mod.xmlDebugDumpAttrList(output, self._o, depth)
python
def debugDumpAttrList(self, output, depth): """Dumps debug information for the attribute list """ libxml2mod.xmlDebugDumpAttrList(output, self._o, depth)
[ "def", "debugDumpAttrList", "(", "self", ",", "output", ",", "depth", ")", ":", "libxml2mod", ".", "xmlDebugDumpAttrList", "(", "output", ",", "self", ".", "_o", ",", "depth", ")" ]
Dumps debug information for the attribute list
[ "Dumps", "debug", "information", "for", "the", "attribute", "list" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5577-L5579
29,361
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
catalog.add
def add(self, type, orig, replace): """Add an entry in the catalog, it may overwrite existing but different entries. """ ret = libxml2mod.xmlACatalogAdd(self._o, type, orig, replace) return ret
python
def add(self, type, orig, replace): """Add an entry in the catalog, it may overwrite existing but different entries. """ ret = libxml2mod.xmlACatalogAdd(self._o, type, orig, replace) return ret
[ "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 different entries.
[ "Add", "an", "entry", "in", "the", "catalog", "it", "may", "overwrite", "existing", "but", "different", "entries", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5661-L5665
29,362
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
catalog.remove
def remove(self, value): """Remove an entry from the catalog """ ret = libxml2mod.xmlACatalogRemove(self._o, value) return ret
python
def remove(self, value): """Remove an entry from the catalog """ ret = libxml2mod.xmlACatalogRemove(self._o, value) return ret
[ "def", "remove", "(", "self", ",", "value", ")", ":", "ret", "=", "libxml2mod", ".", "xmlACatalogRemove", "(", "self", ".", "_o", ",", "value", ")", "return", "ret" ]
Remove an entry from the catalog
[ "Remove", "an", "entry", "from", "the", "catalog" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5681-L5684
29,363
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
catalog.resolve
def resolve(self, pubID, sysID): """Do a complete resolution lookup of an External Identifier """ ret = libxml2mod.xmlACatalogResolve(self._o, pubID, sysID) return ret
python
def resolve(self, pubID, sysID): """Do a complete resolution lookup of an External Identifier """ ret = libxml2mod.xmlACatalogResolve(self._o, pubID, sysID) return ret
[ "def", "resolve", "(", "self", ",", "pubID", ",", "sysID", ")", ":", "ret", "=", "libxml2mod", ".", "xmlACatalogResolve", "(", "self", ".", "_o", ",", "pubID", ",", "sysID", ")", "return", "ret" ]
Do a complete resolution lookup of an External Identifier
[ "Do", "a", "complete", "resolution", "lookup", "of", "an", "External", "Identifier" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5686-L5689
29,364
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
catalog.resolvePublic
def resolvePublic(self, pubID): """Try to lookup the catalog local reference associated to a public ID in that catalog """ ret = libxml2mod.xmlACatalogResolvePublic(self._o, pubID) return ret
python
def resolvePublic(self, pubID): """Try to lookup the catalog local reference associated to a public ID in that catalog """ ret = libxml2mod.xmlACatalogResolvePublic(self._o, pubID) return ret
[ "def", "resolvePublic", "(", "self", ",", "pubID", ")", ":", "ret", "=", "libxml2mod", ".", "xmlACatalogResolvePublic", "(", "self", ".", "_o", ",", "pubID", ")", "return", "ret" ]
Try to lookup the catalog local reference associated to a public ID in that catalog
[ "Try", "to", "lookup", "the", "catalog", "local", "reference", "associated", "to", "a", "public", "ID", "in", "that", "catalog" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5691-L5695
29,365
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
catalog.resolveSystem
def resolveSystem(self, sysID): """Try to lookup the catalog resource for a system ID """ ret = libxml2mod.xmlACatalogResolveSystem(self._o, sysID) return ret
python
def resolveSystem(self, sysID): """Try to lookup the catalog resource for a system ID """ ret = libxml2mod.xmlACatalogResolveSystem(self._o, sysID) return ret
[ "def", "resolveSystem", "(", "self", ",", "sysID", ")", ":", "ret", "=", "libxml2mod", ".", "xmlACatalogResolveSystem", "(", "self", ".", "_o", ",", "sysID", ")", "return", "ret" ]
Try to lookup the catalog resource for a system ID
[ "Try", "to", "lookup", "the", "catalog", "resource", "for", "a", "system", "ID" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5697-L5700
29,366
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
catalog.resolveURI
def resolveURI(self, URI): """Do a complete resolution lookup of an URI """ ret = libxml2mod.xmlACatalogResolveURI(self._o, URI) return ret
python
def resolveURI(self, URI): """Do a complete resolution lookup of an URI """ ret = libxml2mod.xmlACatalogResolveURI(self._o, URI) return ret
[ "def", "resolveURI", "(", "self", ",", "URI", ")", ":", "ret", "=", "libxml2mod", ".", "xmlACatalogResolveURI", "(", "self", ".", "_o", ",", "URI", ")", "return", "ret" ]
Do a complete resolution lookup of an URI
[ "Do", "a", "complete", "resolution", "lookup", "of", "an", "URI" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5702-L5705
29,367
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDtd.copyDtd
def copyDtd(self): """Do a copy of the dtd. """ ret = libxml2mod.xmlCopyDtd(self._o) if ret is None:raise treeError('xmlCopyDtd() failed') __tmp = xmlDtd(_obj=ret) return __tmp
python
def copyDtd(self): """Do a copy of the dtd. """ ret = libxml2mod.xmlCopyDtd(self._o) if ret is None:raise treeError('xmlCopyDtd() failed') __tmp = xmlDtd(_obj=ret) return __tmp
[ "def", "copyDtd", "(", "self", ")", ":", "ret", "=", "libxml2mod", ".", "xmlCopyDtd", "(", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlCopyDtd() failed'", ")", "__tmp", "=", "xmlDtd", "(", "_obj", "=", "ret", ")", "return", "__tmp" ]
Do a copy of the dtd.
[ "Do", "a", "copy", "of", "the", "dtd", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5728-L5733
29,368
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDtd.dtdAttrDesc
def dtdAttrDesc(self, elem, name): """Search the DTD for the description of this attribute on this element. """ ret = libxml2mod.xmlGetDtdAttrDesc(self._o, elem, name) if ret is None:raise treeError('xmlGetDtdAttrDesc() failed') __tmp = xmlAttribute(_obj=ret) return __tmp
python
def dtdAttrDesc(self, elem, name): """Search the DTD for the description of this attribute on this element. """ ret = libxml2mod.xmlGetDtdAttrDesc(self._o, elem, name) if ret is None:raise treeError('xmlGetDtdAttrDesc() failed') __tmp = xmlAttribute(_obj=ret) return __tmp
[ "def", "dtdAttrDesc", "(", "self", ",", "elem", ",", "name", ")", ":", "ret", "=", "libxml2mod", ".", "xmlGetDtdAttrDesc", "(", "self", ".", "_o", ",", "elem", ",", "name", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlGetDtdAttrDesc() failed'", ")", "__tmp", "=", "xmlAttribute", "(", "_obj", "=", "ret", ")", "return", "__tmp" ]
Search the DTD for the description of this attribute on this element.
[ "Search", "the", "DTD", "for", "the", "description", "of", "this", "attribute", "on", "this", "element", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5743-L5749
29,369
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlDtd.dtdQAttrDesc
def dtdQAttrDesc(self, elem, name, prefix): """Search the DTD for the description of this qualified attribute on this element. """ ret = libxml2mod.xmlGetDtdQAttrDesc(self._o, elem, name, prefix) if ret is None:raise treeError('xmlGetDtdQAttrDesc() failed') __tmp = xmlAttribute(_obj=ret) return __tmp
python
def dtdQAttrDesc(self, elem, name, prefix): """Search the DTD for the description of this qualified attribute on this element. """ ret = libxml2mod.xmlGetDtdQAttrDesc(self._o, elem, name, prefix) if ret is None:raise treeError('xmlGetDtdQAttrDesc() failed') __tmp = xmlAttribute(_obj=ret) return __tmp
[ "def", "dtdQAttrDesc", "(", "self", ",", "elem", ",", "name", ",", "prefix", ")", ":", "ret", "=", "libxml2mod", ".", "xmlGetDtdQAttrDesc", "(", "self", ".", "_o", ",", "elem", ",", "name", ",", "prefix", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlGetDtdQAttrDesc() failed'", ")", "__tmp", "=", "xmlAttribute", "(", "_obj", "=", "ret", ")", "return", "__tmp" ]
Search the DTD for the description of this qualified attribute on this element.
[ "Search", "the", "DTD", "for", "the", "description", "of", "this", "qualified", "attribute", "on", "this", "element", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5758-L5764
29,370
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
Error.copyError
def copyError(self, to): """Save the original error to the new place. """ if to is None: to__o = None else: to__o = to._o ret = libxml2mod.xmlCopyError(self._o, to__o) return ret
python
def copyError(self, to): """Save the original error to the new place. """ if to is None: to__o = None else: to__o = to._o ret = libxml2mod.xmlCopyError(self._o, to__o) return ret
[ "def", "copyError", "(", "self", ",", "to", ")", ":", "if", "to", "is", "None", ":", "to__o", "=", "None", "else", ":", "to__o", "=", "to", ".", "_o", "ret", "=", "libxml2mod", ".", "xmlCopyError", "(", "self", ".", "_o", ",", "to__o", ")", "return", "ret" ]
Save the original error to the new place.
[ "Save", "the", "original", "error", "to", "the", "new", "place", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5843-L5848
29,371
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlNs.copyNamespace
def copyNamespace(self): """Do a copy of the namespace. """ ret = libxml2mod.xmlCopyNamespace(self._o) if ret is None:raise treeError('xmlCopyNamespace() failed') __tmp = xmlNs(_obj=ret) return __tmp
python
def copyNamespace(self): """Do a copy of the namespace. """ ret = libxml2mod.xmlCopyNamespace(self._o) if ret is None:raise treeError('xmlCopyNamespace() failed') __tmp = xmlNs(_obj=ret) return __tmp
[ "def", "copyNamespace", "(", "self", ")", ":", "ret", "=", "libxml2mod", ".", "xmlCopyNamespace", "(", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlCopyNamespace() failed'", ")", "__tmp", "=", "xmlNs", "(", "_obj", "=", "ret", ")", "return", "__tmp" ]
Do a copy of the namespace.
[ "Do", "a", "copy", "of", "the", "namespace", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5867-L5872
29,372
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlNs.copyNamespaceList
def copyNamespaceList(self): """Do a copy of an namespace list. """ ret = libxml2mod.xmlCopyNamespaceList(self._o) if ret is None:raise treeError('xmlCopyNamespaceList() failed') __tmp = xmlNs(_obj=ret) return __tmp
python
def copyNamespaceList(self): """Do a copy of an namespace list. """ ret = libxml2mod.xmlCopyNamespaceList(self._o) if ret is None:raise treeError('xmlCopyNamespaceList() failed') __tmp = xmlNs(_obj=ret) return __tmp
[ "def", "copyNamespaceList", "(", "self", ")", ":", "ret", "=", "libxml2mod", ".", "xmlCopyNamespaceList", "(", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlCopyNamespaceList() failed'", ")", "__tmp", "=", "xmlNs", "(", "_obj", "=", "ret", ")", "return", "__tmp" ]
Do a copy of an namespace list.
[ "Do", "a", "copy", "of", "an", "namespace", "list", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5874-L5879
29,373
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlNs.newNodeEatName
def newNodeEatName(self, name): """Creation of a new node element. @ns is optional (None). """ ret = libxml2mod.xmlNewNodeEatName(self._o, name) if ret is None:raise treeError('xmlNewNodeEatName() failed') __tmp = xmlNode(_obj=ret) return __tmp
python
def newNodeEatName(self, name): """Creation of a new node element. @ns is optional (None). """ ret = libxml2mod.xmlNewNodeEatName(self._o, name) if ret is None:raise treeError('xmlNewNodeEatName() failed') __tmp = xmlNode(_obj=ret) return __tmp
[ "def", "newNodeEatName", "(", "self", ",", "name", ")", ":", "ret", "=", "libxml2mod", ".", "xmlNewNodeEatName", "(", "self", ".", "_o", ",", "name", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlNewNodeEatName() failed'", ")", "__tmp", "=", "xmlNode", "(", "_obj", "=", "ret", ")", "return", "__tmp" ]
Creation of a new node element. @ns is optional (None).
[ "Creation", "of", "a", "new", "node", "element", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L5946-L5951
29,374
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
inputBuffer.read
def read(self, len): """Refresh the content of the input buffer, the old data are considered consumed This routine handle the I18N transcoding to internal UTF-8 """ ret = libxml2mod.xmlParserInputBufferRead(self._o, len) return ret
python
def read(self, len): """Refresh the content of the input buffer, the old data are considered consumed This routine handle the I18N transcoding to internal UTF-8 """ ret = libxml2mod.xmlParserInputBufferRead(self._o, len) return ret
[ "def", "read", "(", "self", ",", "len", ")", ":", "ret", "=", "libxml2mod", ".", "xmlParserInputBufferRead", "(", "self", ".", "_o", ",", "len", ")", "return", "ret" ]
Refresh the content of the input buffer, the old data are considered consumed This routine handle the I18N transcoding to internal UTF-8
[ "Refresh", "the", "content", "of", "the", "input", "buffer", "the", "old", "data", "are", "considered", "consumed", "This", "routine", "handle", "the", "I18N", "transcoding", "to", "internal", "UTF", "-", "8" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6156-L6161
29,375
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
inputBuffer.newTextReader
def newTextReader(self, URI): """Create an xmlTextReader structure fed with @input """ ret = libxml2mod.xmlNewTextReader(self._o, URI) if ret is None:raise treeError('xmlNewTextReader() failed') __tmp = xmlTextReader(_obj=ret) __tmp.input = self return __tmp
python
def newTextReader(self, URI): """Create an xmlTextReader structure fed with @input """ ret = libxml2mod.xmlNewTextReader(self._o, URI) if ret is None:raise treeError('xmlNewTextReader() failed') __tmp = xmlTextReader(_obj=ret) __tmp.input = self return __tmp
[ "def", "newTextReader", "(", "self", ",", "URI", ")", ":", "ret", "=", "libxml2mod", ".", "xmlNewTextReader", "(", "self", ".", "_o", ",", "URI", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlNewTextReader() failed'", ")", "__tmp", "=", "xmlTextReader", "(", "_obj", "=", "ret", ")", "__tmp", ".", "input", "=", "self", "return", "__tmp" ]
Create an xmlTextReader structure fed with @input
[ "Create", "an", "xmlTextReader", "structure", "fed", "with" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6174-L6180
29,376
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlReg.regexpExec
def regexpExec(self, content): """Check if the regular expression generates the value """ ret = libxml2mod.xmlRegexpExec(self._o, content) return ret
python
def regexpExec(self, content): """Check if the regular expression generates the value """ ret = libxml2mod.xmlRegexpExec(self._o, content) return ret
[ "def", "regexpExec", "(", "self", ",", "content", ")", ":", "ret", "=", "libxml2mod", ".", "xmlRegexpExec", "(", "self", ".", "_o", ",", "content", ")", "return", "ret" ]
Check if the regular expression generates the value
[ "Check", "if", "the", "regular", "expression", "generates", "the", "value" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6196-L6199
29,377
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
relaxNgParserCtxt.relaxParserSetFlag
def relaxParserSetFlag(self, flags): """Semi private function used to pass informations to a parser context which are a combination of xmlRelaxNGParserFlag . """ ret = libxml2mod.xmlRelaxParserSetFlag(self._o, flags) return ret
python
def relaxParserSetFlag(self, flags): """Semi private function used to pass informations to a parser context which are a combination of xmlRelaxNGParserFlag . """ ret = libxml2mod.xmlRelaxParserSetFlag(self._o, flags) return ret
[ "def", "relaxParserSetFlag", "(", "self", ",", "flags", ")", ":", "ret", "=", "libxml2mod", ".", "xmlRelaxParserSetFlag", "(", "self", ".", "_o", ",", "flags", ")", "return", "ret" ]
Semi private function used to pass informations to a parser context which are a combination of xmlRelaxNGParserFlag .
[ "Semi", "private", "function", "used", "to", "pass", "informations", "to", "a", "parser", "context", "which", "are", "a", "combination", "of", "xmlRelaxNGParserFlag", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6232-L6236
29,378
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
relaxNgSchema.relaxNGNewValidCtxt
def relaxNGNewValidCtxt(self): """Create an XML RelaxNGs validation context based on the given schema """ ret = libxml2mod.xmlRelaxNGNewValidCtxt(self._o) if ret is None:raise treeError('xmlRelaxNGNewValidCtxt() failed') __tmp = relaxNgValidCtxt(_obj=ret) __tmp.schema = self return __tmp
python
def relaxNGNewValidCtxt(self): """Create an XML RelaxNGs validation context based on the given schema """ ret = libxml2mod.xmlRelaxNGNewValidCtxt(self._o) if ret is None:raise treeError('xmlRelaxNGNewValidCtxt() failed') __tmp = relaxNgValidCtxt(_obj=ret) __tmp.schema = self return __tmp
[ "def", "relaxNGNewValidCtxt", "(", "self", ")", ":", "ret", "=", "libxml2mod", ".", "xmlRelaxNGNewValidCtxt", "(", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlRelaxNGNewValidCtxt() failed'", ")", "__tmp", "=", "relaxNgValidCtxt", "(", "_obj", "=", "ret", ")", "__tmp", ".", "schema", "=", "self", "return", "__tmp" ]
Create an XML RelaxNGs validation context based on the given schema
[ "Create", "an", "XML", "RelaxNGs", "validation", "context", "based", "on", "the", "given", "schema" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6260-L6267
29,379
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
Schema.schemaNewValidCtxt
def schemaNewValidCtxt(self): """Create an XML Schemas validation context based on the given schema. """ ret = libxml2mod.xmlSchemaNewValidCtxt(self._o) if ret is None:raise treeError('xmlSchemaNewValidCtxt() failed') __tmp = SchemaValidCtxt(_obj=ret) __tmp.schema = self return __tmp
python
def schemaNewValidCtxt(self): """Create an XML Schemas validation context based on the given schema. """ ret = libxml2mod.xmlSchemaNewValidCtxt(self._o) if ret is None:raise treeError('xmlSchemaNewValidCtxt() failed') __tmp = SchemaValidCtxt(_obj=ret) __tmp.schema = self return __tmp
[ "def", "schemaNewValidCtxt", "(", "self", ")", ":", "ret", "=", "libxml2mod", ".", "xmlSchemaNewValidCtxt", "(", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlSchemaNewValidCtxt() failed'", ")", "__tmp", "=", "SchemaValidCtxt", "(", "_obj", "=", "ret", ")", "__tmp", ".", "schema", "=", "self", "return", "__tmp" ]
Create an XML Schemas validation context based on the given schema.
[ "Create", "an", "XML", "Schemas", "validation", "context", "based", "on", "the", "given", "schema", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6409-L6416
29,380
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
SchemaValidCtxt.schemaSetValidOptions
def schemaSetValidOptions(self, options): """Sets the options to be used during the validation. """ ret = libxml2mod.xmlSchemaSetValidOptions(self._o, options) return ret
python
def schemaSetValidOptions(self, options): """Sets the options to be used during the validation. """ ret = libxml2mod.xmlSchemaSetValidOptions(self._o, options) return ret
[ "def", "schemaSetValidOptions", "(", "self", ",", "options", ")", ":", "ret", "=", "libxml2mod", ".", "xmlSchemaSetValidOptions", "(", "self", ".", "_o", ",", "options", ")", "return", "ret" ]
Sets the options to be used during the validation.
[ "Sets", "the", "options", "to", "be", "used", "during", "the", "validation", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6452-L6455
29,381
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
SchemaValidCtxt.schemaValidCtxtGetParserCtxt
def schemaValidCtxtGetParserCtxt(self): """allow access to the parser context of the schema validation context """ ret = libxml2mod.xmlSchemaValidCtxtGetParserCtxt(self._o) if ret is None:raise parserError('xmlSchemaValidCtxtGetParserCtxt() failed') __tmp = parserCtxt(_obj=ret) return __tmp
python
def schemaValidCtxtGetParserCtxt(self): """allow access to the parser context of the schema validation context """ ret = libxml2mod.xmlSchemaValidCtxtGetParserCtxt(self._o) if ret is None:raise parserError('xmlSchemaValidCtxtGetParserCtxt() failed') __tmp = parserCtxt(_obj=ret) return __tmp
[ "def", "schemaValidCtxtGetParserCtxt", "(", "self", ")", ":", "ret", "=", "libxml2mod", ".", "xmlSchemaValidCtxtGetParserCtxt", "(", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "raise", "parserError", "(", "'xmlSchemaValidCtxtGetParserCtxt() failed'", ")", "__tmp", "=", "parserCtxt", "(", "_obj", "=", "ret", ")", "return", "__tmp" ]
allow access to the parser context of the schema validation context
[ "allow", "access", "to", "the", "parser", "context", "of", "the", "schema", "validation", "context" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6462-L6468
29,382
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
SchemaValidCtxt.schemaValidateFile
def schemaValidateFile(self, filename, options): """Do a schemas validation of the given resource, it will use the SAX streamable validation internally. """ ret = libxml2mod.xmlSchemaValidateFile(self._o, filename, options) return ret
python
def schemaValidateFile(self, filename, options): """Do a schemas validation of the given resource, it will use the SAX streamable validation internally. """ ret = libxml2mod.xmlSchemaValidateFile(self._o, filename, options) return ret
[ "def", "schemaValidateFile", "(", "self", ",", "filename", ",", "options", ")", ":", "ret", "=", "libxml2mod", ".", "xmlSchemaValidateFile", "(", "self", ".", "_o", ",", "filename", ",", "options", ")", "return", "ret" ]
Do a schemas validation of the given resource, it will use the SAX streamable validation internally.
[ "Do", "a", "schemas", "validation", "of", "the", "given", "resource", "it", "will", "use", "the", "SAX", "streamable", "validation", "internally", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6477-L6481
29,383
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlTextReader.CurrentNode
def CurrentNode(self): """Hacking interface allowing to get the xmlNodePtr correponding to the current node being accessed by the xmlTextReader. This is dangerous because the underlying node may be destroyed on the next Reads. """ ret = libxml2mod.xmlTextReaderCurrentNode(self._o) if ret is None:raise treeError('xmlTextReaderCurrentNode() failed') __tmp = xmlNode(_obj=ret) return __tmp
python
def CurrentNode(self): """Hacking interface allowing to get the xmlNodePtr correponding to the current node being accessed by the xmlTextReader. This is dangerous because the underlying node may be destroyed on the next Reads. """ ret = libxml2mod.xmlTextReaderCurrentNode(self._o) if ret is None:raise treeError('xmlTextReaderCurrentNode() failed') __tmp = xmlNode(_obj=ret) return __tmp
[ "def", "CurrentNode", "(", "self", ")", ":", "ret", "=", "libxml2mod", ".", "xmlTextReaderCurrentNode", "(", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlTextReaderCurrentNode() failed'", ")", "__tmp", "=", "xmlNode", "(", "_obj", "=", "ret", ")", "return", "__tmp" ]
Hacking interface allowing to get the xmlNodePtr correponding to the current node being accessed by the xmlTextReader. This is dangerous because the underlying node may be destroyed on the next Reads.
[ "Hacking", "interface", "allowing", "to", "get", "the", "xmlNodePtr", "correponding", "to", "the", "current", "node", "being", "accessed", "by", "the", "xmlTextReader", ".", "This", "is", "dangerous", "because", "the", "underlying", "node", "may", "be", "destroyed", "on", "the", "next", "Reads", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6567-L6575
29,384
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlTextReader.GetAttribute
def GetAttribute(self, name): """Provides the value of the attribute with the specified qualified name. """ ret = libxml2mod.xmlTextReaderGetAttribute(self._o, name) return ret
python
def GetAttribute(self, name): """Provides the value of the attribute with the specified qualified name. """ ret = libxml2mod.xmlTextReaderGetAttribute(self._o, name) return ret
[ "def", "GetAttribute", "(", "self", ",", "name", ")", ":", "ret", "=", "libxml2mod", ".", "xmlTextReaderGetAttribute", "(", "self", ".", "_o", ",", "name", ")", "return", "ret" ]
Provides the value of the attribute with the specified qualified name.
[ "Provides", "the", "value", "of", "the", "attribute", "with", "the", "specified", "qualified", "name", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6596-L6600
29,385
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlTextReader.GetAttributeNo
def GetAttributeNo(self, no): """Provides the value of the attribute with the specified index relative to the containing element. """ ret = libxml2mod.xmlTextReaderGetAttributeNo(self._o, no) return ret
python
def GetAttributeNo(self, no): """Provides the value of the attribute with the specified index relative to the containing element. """ ret = libxml2mod.xmlTextReaderGetAttributeNo(self._o, no) return ret
[ "def", "GetAttributeNo", "(", "self", ",", "no", ")", ":", "ret", "=", "libxml2mod", ".", "xmlTextReaderGetAttributeNo", "(", "self", ".", "_o", ",", "no", ")", "return", "ret" ]
Provides the value of the attribute with the specified index relative to the containing element.
[ "Provides", "the", "value", "of", "the", "attribute", "with", "the", "specified", "index", "relative", "to", "the", "containing", "element", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6602-L6606
29,386
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlTextReader.GetAttributeNs
def GetAttributeNs(self, localName, namespaceURI): """Provides the value of the specified attribute """ ret = libxml2mod.xmlTextReaderGetAttributeNs(self._o, localName, namespaceURI) return ret
python
def GetAttributeNs(self, localName, namespaceURI): """Provides the value of the specified attribute """ ret = libxml2mod.xmlTextReaderGetAttributeNs(self._o, localName, namespaceURI) return ret
[ "def", "GetAttributeNs", "(", "self", ",", "localName", ",", "namespaceURI", ")", ":", "ret", "=", "libxml2mod", ".", "xmlTextReaderGetAttributeNs", "(", "self", ".", "_o", ",", "localName", ",", "namespaceURI", ")", "return", "ret" ]
Provides the value of the specified attribute
[ "Provides", "the", "value", "of", "the", "specified", "attribute" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6608-L6611
29,387
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlTextReader.GetParserProp
def GetParserProp(self, prop): """Read the parser internal property. """ ret = libxml2mod.xmlTextReaderGetParserProp(self._o, prop) return ret
python
def GetParserProp(self, prop): """Read the parser internal property. """ ret = libxml2mod.xmlTextReaderGetParserProp(self._o, prop) return ret
[ "def", "GetParserProp", "(", "self", ",", "prop", ")", ":", "ret", "=", "libxml2mod", ".", "xmlTextReaderGetParserProp", "(", "self", ".", "_o", ",", "prop", ")", "return", "ret" ]
Read the parser internal property.
[ "Read", "the", "parser", "internal", "property", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6623-L6626
29,388
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlTextReader.GetRemainder
def GetRemainder(self): """Method to get the remainder of the buffered XML. this method stops the parser, set its state to End Of File and return the input stream with what is left that the parser did not use. The implementation is not good, the parser certainly procgressed past what's left in reader->input, and there is an allocation problem. Best would be to rewrite it differently. """ ret = libxml2mod.xmlTextReaderGetRemainder(self._o) if ret is None:raise treeError('xmlTextReaderGetRemainder() failed') __tmp = inputBuffer(_obj=ret) return __tmp
python
def GetRemainder(self): """Method to get the remainder of the buffered XML. this method stops the parser, set its state to End Of File and return the input stream with what is left that the parser did not use. The implementation is not good, the parser certainly procgressed past what's left in reader->input, and there is an allocation problem. Best would be to rewrite it differently. """ ret = libxml2mod.xmlTextReaderGetRemainder(self._o) if ret is None:raise treeError('xmlTextReaderGetRemainder() failed') __tmp = inputBuffer(_obj=ret) return __tmp
[ "def", "GetRemainder", "(", "self", ")", ":", "ret", "=", "libxml2mod", ".", "xmlTextReaderGetRemainder", "(", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "raise", "treeError", "(", "'xmlTextReaderGetRemainder() failed'", ")", "__tmp", "=", "inputBuffer", "(", "_obj", "=", "ret", ")", "return", "__tmp" ]
Method to get the remainder of the buffered XML. this method stops the parser, set its state to End Of File and return the input stream with what is left that the parser did not use. The implementation is not good, the parser certainly procgressed past what's left in reader->input, and there is an allocation problem. Best would be to rewrite it differently.
[ "Method", "to", "get", "the", "remainder", "of", "the", "buffered", "XML", ".", "this", "method", "stops", "the", "parser", "set", "its", "state", "to", "End", "Of", "File", "and", "return", "the", "input", "stream", "with", "what", "is", "left", "that", "the", "parser", "did", "not", "use", ".", "The", "implementation", "is", "not", "good", "the", "parser", "certainly", "procgressed", "past", "what", "s", "left", "in", "reader", "-", ">", "input", "and", "there", "is", "an", "allocation", "problem", ".", "Best", "would", "be", "to", "rewrite", "it", "differently", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6628-L6639
29,389
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlTextReader.LookupNamespace
def LookupNamespace(self, prefix): """Resolves a namespace prefix in the scope of the current element. """ ret = libxml2mod.xmlTextReaderLookupNamespace(self._o, prefix) return ret
python
def LookupNamespace(self, prefix): """Resolves a namespace prefix in the scope of the current element. """ ret = libxml2mod.xmlTextReaderLookupNamespace(self._o, prefix) return ret
[ "def", "LookupNamespace", "(", "self", ",", "prefix", ")", ":", "ret", "=", "libxml2mod", ".", "xmlTextReaderLookupNamespace", "(", "self", ".", "_o", ",", "prefix", ")", "return", "ret" ]
Resolves a namespace prefix in the scope of the current element.
[ "Resolves", "a", "namespace", "prefix", "in", "the", "scope", "of", "the", "current", "element", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6678-L6682
29,390
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlTextReader.MoveToAttribute
def MoveToAttribute(self, name): """Moves the position of the current instance to the attribute with the specified qualified name. """ ret = libxml2mod.xmlTextReaderMoveToAttribute(self._o, name) return ret
python
def MoveToAttribute(self, name): """Moves the position of the current instance to the attribute with the specified qualified name. """ ret = libxml2mod.xmlTextReaderMoveToAttribute(self._o, name) return ret
[ "def", "MoveToAttribute", "(", "self", ",", "name", ")", ":", "ret", "=", "libxml2mod", ".", "xmlTextReaderMoveToAttribute", "(", "self", ".", "_o", ",", "name", ")", "return", "ret" ]
Moves the position of the current instance to the attribute with the specified qualified name.
[ "Moves", "the", "position", "of", "the", "current", "instance", "to", "the", "attribute", "with", "the", "specified", "qualified", "name", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6684-L6688
29,391
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlTextReader.MoveToAttributeNo
def MoveToAttributeNo(self, no): """Moves the position of the current instance to the attribute with the specified index relative to the containing element. """ ret = libxml2mod.xmlTextReaderMoveToAttributeNo(self._o, no) return ret
python
def MoveToAttributeNo(self, no): """Moves the position of the current instance to the attribute with the specified index relative to the containing element. """ ret = libxml2mod.xmlTextReaderMoveToAttributeNo(self._o, no) return ret
[ "def", "MoveToAttributeNo", "(", "self", ",", "no", ")", ":", "ret", "=", "libxml2mod", ".", "xmlTextReaderMoveToAttributeNo", "(", "self", ".", "_o", ",", "no", ")", "return", "ret" ]
Moves the position of the current instance to the attribute with the specified index relative to the containing element.
[ "Moves", "the", "position", "of", "the", "current", "instance", "to", "the", "attribute", "with", "the", "specified", "index", "relative", "to", "the", "containing", "element", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6690-L6694
29,392
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlTextReader.MoveToAttributeNs
def MoveToAttributeNs(self, localName, namespaceURI): """Moves the position of the current instance to the attribute with the specified local name and namespace URI. """ ret = libxml2mod.xmlTextReaderMoveToAttributeNs(self._o, localName, namespaceURI) return ret
python
def MoveToAttributeNs(self, localName, namespaceURI): """Moves the position of the current instance to the attribute with the specified local name and namespace URI. """ ret = libxml2mod.xmlTextReaderMoveToAttributeNs(self._o, localName, namespaceURI) return ret
[ "def", "MoveToAttributeNs", "(", "self", ",", "localName", ",", "namespaceURI", ")", ":", "ret", "=", "libxml2mod", ".", "xmlTextReaderMoveToAttributeNs", "(", "self", ".", "_o", ",", "localName", ",", "namespaceURI", ")", "return", "ret" ]
Moves the position of the current instance to the attribute with the specified local name and namespace URI.
[ "Moves", "the", "position", "of", "the", "current", "instance", "to", "the", "attribute", "with", "the", "specified", "local", "name", "and", "namespace", "URI", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6696-L6700
29,393
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlTextReader.NewFd
def NewFd(self, fd, URL, encoding, options): """Setup an xmltextReader to parse an XML from a file descriptor. NOTE that the file descriptor will not be closed when the reader is closed or reset. The parsing flags @options are a combination of xmlParserOption. This reuses the existing @reader xmlTextReader. """ ret = libxml2mod.xmlReaderNewFd(self._o, fd, URL, encoding, options) return ret
python
def NewFd(self, fd, URL, encoding, options): """Setup an xmltextReader to parse an XML from a file descriptor. NOTE that the file descriptor will not be closed when the reader is closed or reset. The parsing flags @options are a combination of xmlParserOption. This reuses the existing @reader xmlTextReader. """ ret = libxml2mod.xmlReaderNewFd(self._o, fd, URL, encoding, options) return ret
[ "def", "NewFd", "(", "self", ",", "fd", ",", "URL", ",", "encoding", ",", "options", ")", ":", "ret", "=", "libxml2mod", ".", "xmlReaderNewFd", "(", "self", ".", "_o", ",", "fd", ",", "URL", ",", "encoding", ",", "options", ")", "return", "ret" ]
Setup an xmltextReader to parse an XML from a file descriptor. NOTE that the file descriptor will not be closed when the reader is closed or reset. The parsing flags @options are a combination of xmlParserOption. This reuses the existing @reader xmlTextReader.
[ "Setup", "an", "xmltextReader", "to", "parse", "an", "XML", "from", "a", "file", "descriptor", ".", "NOTE", "that", "the", "file", "descriptor", "will", "not", "be", "closed", "when", "the", "reader", "is", "closed", "or", "reset", ".", "The", "parsing", "flags" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6738-L6745
29,394
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlTextReader.SetParserProp
def SetParserProp(self, prop, value): """Change the parser processing behaviour by changing some of its internal properties. Note that some properties can only be changed before any read has been done. """ ret = libxml2mod.xmlTextReaderSetParserProp(self._o, prop, value) return ret
python
def SetParserProp(self, prop, value): """Change the parser processing behaviour by changing some of its internal properties. Note that some properties can only be changed before any read has been done. """ ret = libxml2mod.xmlTextReaderSetParserProp(self._o, prop, value) return ret
[ "def", "SetParserProp", "(", "self", ",", "prop", ",", "value", ")", ":", "ret", "=", "libxml2mod", ".", "xmlTextReaderSetParserProp", "(", "self", ".", "_o", ",", "prop", ",", "value", ")", "return", "ret" ]
Change the parser processing behaviour by changing some of its internal properties. Note that some properties can only be changed before any read has been done.
[ "Change", "the", "parser", "processing", "behaviour", "by", "changing", "some", "of", "its", "internal", "properties", ".", "Note", "that", "some", "properties", "can", "only", "be", "changed", "before", "any", "read", "has", "been", "done", "." ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6903-L6908
29,395
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xmlTextReader.String
def String(self, str): """Get an interned string from the reader, allows for example to speedup string name comparisons """ ret = libxml2mod.xmlTextReaderConstString(self._o, str) return ret
python
def String(self, str): """Get an interned string from the reader, allows for example to speedup string name comparisons """ ret = libxml2mod.xmlTextReaderConstString(self._o, str) return ret
[ "def", "String", "(", "self", ",", "str", ")", ":", "ret", "=", "libxml2mod", ".", "xmlTextReaderConstString", "(", "self", ".", "_o", ",", "str", ")", "return", "ret" ]
Get an interned string from the reader, allows for example to speedup string name comparisons
[ "Get", "an", "interned", "string", "from", "the", "reader", "allows", "for", "example", "to", "speedup", "string", "name", "comparisons" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L6933-L6937
29,396
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
URI.parseURIReference
def parseURIReference(self, str): """Parse an URI reference string based on RFC 3986 and fills in the appropriate fields of the @uri structure URI-reference = URI / relative-ref """ ret = libxml2mod.xmlParseURIReference(self._o, str) return ret
python
def parseURIReference(self, str): """Parse an URI reference string based on RFC 3986 and fills in the appropriate fields of the @uri structure URI-reference = URI / relative-ref """ ret = libxml2mod.xmlParseURIReference(self._o, str) return ret
[ "def", "parseURIReference", "(", "self", ",", "str", ")", ":", "ret", "=", "libxml2mod", ".", "xmlParseURIReference", "(", "self", ".", "_o", ",", "str", ")", "return", "ret" ]
Parse an URI reference string based on RFC 3986 and fills in the appropriate fields of the @uri structure URI-reference = URI / relative-ref
[ "Parse", "an", "URI", "reference", "string", "based", "on", "RFC", "3986", "and", "fills", "in", "the", "appropriate", "fields", "of", "the" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7060-L7065
29,397
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xpathContext.contextDoc
def contextDoc(self): """Get the doc from an xpathContext """ ret = libxml2mod.xmlXPathGetContextDoc(self._o) if ret is None:raise xpathError('xmlXPathGetContextDoc() failed') __tmp = xmlDoc(_obj=ret) return __tmp
python
def contextDoc(self): """Get the doc from an xpathContext """ ret = libxml2mod.xmlXPathGetContextDoc(self._o) if ret is None:raise xpathError('xmlXPathGetContextDoc() failed') __tmp = xmlDoc(_obj=ret) return __tmp
[ "def", "contextDoc", "(", "self", ")", ":", "ret", "=", "libxml2mod", ".", "xmlXPathGetContextDoc", "(", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "raise", "xpathError", "(", "'xmlXPathGetContextDoc() failed'", ")", "__tmp", "=", "xmlDoc", "(", "_obj", "=", "ret", ")", "return", "__tmp" ]
Get the doc from an xpathContext
[ "Get", "the", "doc", "from", "an", "xpathContext" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7257-L7262
29,398
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xpathContext.contextNode
def contextNode(self): """Get the current node from an xpathContext """ ret = libxml2mod.xmlXPathGetContextNode(self._o) if ret is None:raise xpathError('xmlXPathGetContextNode() failed') __tmp = xmlNode(_obj=ret) return __tmp
python
def contextNode(self): """Get the current node from an xpathContext """ ret = libxml2mod.xmlXPathGetContextNode(self._o) if ret is None:raise xpathError('xmlXPathGetContextNode() failed') __tmp = xmlNode(_obj=ret) return __tmp
[ "def", "contextNode", "(", "self", ")", ":", "ret", "=", "libxml2mod", ".", "xmlXPathGetContextNode", "(", "self", ".", "_o", ")", "if", "ret", "is", "None", ":", "raise", "xpathError", "(", "'xmlXPathGetContextNode() failed'", ")", "__tmp", "=", "xmlNode", "(", "_obj", "=", "ret", ")", "return", "__tmp" ]
Get the current node from an xpathContext
[ "Get", "the", "current", "node", "from", "an", "xpathContext" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7264-L7269
29,399
apple/turicreate
deps/src/libxml2-2.9.1/python/libxml2.py
xpathContext.setContextDoc
def setContextDoc(self, doc): """Set the doc of an xpathContext """ if doc is None: doc__o = None else: doc__o = doc._o libxml2mod.xmlXPathSetContextDoc(self._o, doc__o)
python
def setContextDoc(self, doc): """Set the doc of an xpathContext """ if doc is None: doc__o = None else: doc__o = doc._o libxml2mod.xmlXPathSetContextDoc(self._o, doc__o)
[ "def", "setContextDoc", "(", "self", ",", "doc", ")", ":", "if", "doc", "is", "None", ":", "doc__o", "=", "None", "else", ":", "doc__o", "=", "doc", ".", "_o", "libxml2mod", ".", "xmlXPathSetContextDoc", "(", "self", ".", "_o", ",", "doc__o", ")" ]
Set the doc of an xpathContext
[ "Set", "the", "doc", "of", "an", "xpathContext" ]
74514c3f99e25b46f22c6e02977fe3da69221c2e
https://github.com/apple/turicreate/blob/74514c3f99e25b46f22c6e02977fe3da69221c2e/deps/src/libxml2-2.9.1/python/libxml2.py#L7291-L7295