|
|
|
|
|
|
|
|
|
debugDumpNode(self,
output,
depth)
Dumps debug information for the element node, it is recursive |
source code
|
|
|
debugDumpNodeList(self,
output,
depth)
Dumps debug information for the list of element node, it is
recursive |
source code
|
|
|
debugDumpOneNode(self,
output,
depth)
Dumps debug information for the element node, it is not
recursive |
source code
|
|
|
lsCountNode(self)
Count the children of @node. |
source code
|
|
|
lsOneNode(self,
output)
Dump to @output the type and name of @node. |
source code
|
|
|
shellPrintNode(self)
Print node to the output FILE |
source code
|
|
|
addChild(self,
cur)
Add a new node to @parent, at the end of the child (or property)
list merging adjacent TEXT nodes (in which case @cur is freed) If the
new node is ATTRIBUTE, it is added into properties instead of
children. |
source code
|
|
|
addChildList(self,
cur)
Add a list of node at the end of the child list of the parent
merging adjacent TEXT nodes (@cur may be freed) |
source code
|
|
|
|
|
|
|
addNextSibling(self,
elem)
Add a new node @elem as the next sibling of @cur If the new node
was already inserted in a document it is first unlinked from its
existing context. |
source code
|
|
|
addPrevSibling(self,
elem)
Add a new node @elem as the previous sibling of @cur merging
adjacent TEXT nodes (@elem may be freed) If the new node was already
inserted in a document it is first unlinked from its existing
context. |
source code
|
|
|
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. |
source code
|
|
|
copyNode(self,
extended)
Do a copy of the node. |
source code
|
|
|
|
|
copyProp(self,
cur)
Do a copy of the attribute. |
source code
|
|
|
copyPropList(self,
cur)
Do a copy of an attribute list. |
source code
|
|
|
docCopyNode(self,
doc,
extended)
Do a copy of the node to a given document. |
source code
|
|
|
docCopyNodeList(self,
doc)
Do a recursive copy of the node list. |
source code
|
|
|
docSetRootElement(self,
doc)
Set the root element of the document (doc->children is a list
containing possibly comments, PIs, etc ...). |
source code
|
|
|
freeNode(self)
Free a node, this is a recursive behaviour, all the children are
freed too. |
source code
|
|
|
freeNodeList(self)
Free a node and all its siblings, this is a recursive behaviour,
all the children are freed too. |
source code
|
|
|
|
|
getContent(self)
Read the value of a node, this can be either the text carried
directly by this node if it's a TEXT node or the aggregate string of
the values carried by this node child's (TEXT and ENTITY_REF). |
source code
|
|
|
|
|
|
|
hasNsProp(self,
name,
nameSpace)
Search for an attribute associated to a node This attribute has to
be anchored in the namespace specified. |
source code
|
|
|
hasProp(self,
name)
Search an attribute associated to a node This function also looks
in DTD attribute declaration for #FIXED or default declaration values
unless DTD use has been turned off. |
source code
|
|
|
isBlankNode(self)
Checks whether this node is an empty or whitespace only (and
possibly ignorable) text-node. |
source code
|
|
|
|
|
lastChild(self)
Search the last child of a node. |
source code
|
|
|
|
|
listGetRawString(self,
doc,
inLine)
Builds the string equivalent to the text contained in the Node
list made of TEXTs and ENTITY_REFs, contrary to
xmlNodeListGetString() this function doesn't do any character
encoding handling. |
source code
|
|
|
listGetString(self,
doc,
inLine)
Build the string equivalent to the text contained in the Node list
made of TEXTs and ENTITY_REFs |
source code
|
|
|
newChild(self,
ns,
name,
content)
Creation of a new child element, added at the end of @parent
children list. |
source code
|
|
|
|
|
newNsProp(self,
ns,
name,
value)
Create a new property tagged with a namespace and carried by a
node. |
source code
|
|
|
newNsPropEatName(self,
ns,
name,
value)
Create a new property tagged with a namespace and carried by a
node. |
source code
|
|
|
newProp(self,
name,
value)
Create a new property carried by a node. |
source code
|
|
|
newTextChild(self,
ns,
name,
content)
Creation of a new child element, added at the end of @parent
children list. |
source code
|
|
|
noNsProp(self,
name)
Search and get the value of an attribute associated to a node This
does the entity substitution. |
source code
|
|
|
nodePath(self)
Build a structure based Path for the given node |
source code
|
|
|
nsProp(self,
name,
nameSpace)
Search and get the value of an attribute associated to a node This
attribute has to be anchored in the namespace specified. |
source code
|
|
|
prop(self,
name)
Search and get the value of an attribute associated to a node This
does the entity substitution. |
source code
|
|
|
reconciliateNs(self,
doc)
This function checks that all the namespaces declared within the
given tree are properly declared. |
source code
|
|
|
replaceNode(self,
cur)
Unlink the old node from its current context, prune the new one at
the same place. |
source code
|
|
|
searchNs(self,
doc,
nameSpace)
Search a Ns registered under a given name space for a
document. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
setListDoc(self,
doc)
update all nodes in the list to point to the right document |
source code
|
|
|
setName(self,
name)
Set (or reset) the name of a node. |
source code
|
|
|
setNs(self,
ns)
Associate a namespace to a node, a posteriori. |
source code
|
|
|
|
|
|
|
|
|
setTreeDoc(self,
doc)
update all nodes under the tree to point to the right document |
source code
|
|
|
textConcat(self,
content,
len)
Concat the given string at the end of the existing node
content |
source code
|
|
|
textMerge(self,
second)
Merge two text nodes into one |
source code
|
|
|
unlinkNode(self)
Unlink a node from it's current context, the node is not freed |
source code
|
|
|
unsetNsProp(self,
ns,
name)
Remove an attribute carried by a node. |
source code
|
|
|
|
|
isID(self,
doc,
attr)
Determine whether an attribute is of type ID. |
source code
|
|
|
isRef(self,
doc,
attr)
Determine whether an attribute is of type Ref. |
source code
|
|
|
validNormalizeAttributeValue(self,
doc,
name,
value)
Does the validation related extra step of the normalization of
attribute values: If the declared value is not CDATA, then the XML
processor must further process the normalized attribute value by
discarding any leading and trailing space (#x20) characters, and by
replacing sequences of space (#x20) characters by single space (#x20)
character. |
source code
|
|
|
xincludeProcessTree(self)
Implement the XInclude substitution for the given subtree |
source code
|
|
|
xincludeProcessTreeFlags(self,
flags)
Implement the XInclude substitution for the given subtree |
source code
|
|
|
|
|
xpathCastNodeToNumber(self)
Converts a node to its number value |
source code
|
|
|
xpathCastNodeToString(self)
Converts a node to its string value. |
source code
|
|
|
xpathCmpNodes(self,
node2)
Compare two nodes w.r.t document order |
source code
|
|
|
xpathNewNodeSet(self)
Create a new xmlXPathObjectPtr of type NodeSet and initialize it
with the single Node @val |
source code
|
|
|
xpathNewValueTree(self)
Create a new xmlXPathObjectPtr of type Value Tree (XSLT) and
initialize it with the tree root @val |
source code
|
|
|
xpathNextAncestor(self,
ctxt)
Traversal function for the "ancestor" direction the
ancestor axis contains the ancestors of the context node; the
ancestors of the context node consist of the parent of context node
and the parent's parent and so on; the nodes are ordered in reverse
document order; thus the parent is the first node on the axis, and
the parent's parent is the second node on the axis |
source code
|
|
|
xpathNextAncestorOrSelf(self,
ctxt)
Traversal function for the "ancestor-or-self" direction
he ancestor-or-self axis contains the context node and ancestors of
the context node in reverse document order; thus the context node is
the first node on the axis, and the context node's parent the second;
parent here is defined the same as with the parent axis. |
source code
|
|
|
xpathNextAttribute(self,
ctxt)
Traversal function for the "attribute" direction TODO:
support DTD inherited default attributes |
source code
|
|
|
xpathNextChild(self,
ctxt)
Traversal function for the "child" direction The child
axis contains the children of the context node in document order. |
source code
|
|
|
xpathNextDescendant(self,
ctxt)
Traversal function for the "descendant" direction the
descendant axis contains the descendants of the context node in
document order; a descendant is a child or a child of a child and so
on. |
source code
|
|
|
xpathNextDescendantOrSelf(self,
ctxt)
Traversal function for the "descendant-or-self"
direction the descendant-or-self axis contains the context node and
the descendants of the context node in document order; thus the
context node is the first node on the axis, and the first child of
the context node is the second node on the axis |
source code
|
|
|
xpathNextFollowing(self,
ctxt)
Traversal function for the "following" direction The
following axis contains all nodes in the same document as the context
node that are after the context node in document order, excluding any
descendants and excluding attribute nodes and namespace nodes; the
nodes are ordered in document order |
source code
|
|
|
xpathNextFollowingSibling(self,
ctxt)
Traversal function for the "following-sibling" direction
The following-sibling axis contains the following siblings of the
context node in document order. |
source code
|
|
|
xpathNextNamespace(self,
ctxt)
Traversal function for the "namespace" direction the
namespace axis contains the namespace nodes of the context node; the
order of nodes on this axis is implementation-defined; the axis will
be empty unless the context node is an element We keep the XML
namespace node at the end of the list. |
source code
|
|
|
xpathNextParent(self,
ctxt)
Traversal function for the "parent" direction The parent
axis contains the parent of the context node, if there is one. |
source code
|
|
|
xpathNextPreceding(self,
ctxt)
Traversal function for the "preceding" direction the
preceding axis contains all nodes in the same document as the context
node that are before the context node in document order, excluding
any ancestors and excluding attribute nodes and namespace nodes; the
nodes are ordered in reverse document order |
source code
|
|
|
xpathNextPrecedingSibling(self,
ctxt)
Traversal function for the "preceding-sibling" direction
The preceding-sibling axis contains the preceding siblings of the
context node in reverse document order; the first preceding sibling
is first on the axis; the sibling preceding that node is the second
on the axis and so on. |
source code
|
|
|
xpathNextSelf(self,
ctxt)
Traversal function for the "self" direction The self
axis contains just the context node itself |
source code
|
|
|
xpointerNewCollapsedRange(self)
Create a new xmlXPathObjectPtr of type range using a single
nodes |
source code
|
|
|
xpointerNewContext(self,
doc,
origin)
Create a new XPointer context |
source code
|
|
|
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 |
source code
|
|
|
xpointerNewRange(self,
startindex,
end,
endindex)
Create a new xmlXPathObjectPtr of type range |
source code
|
|
|
xpointerNewRangeNodes(self,
end)
Create a new xmlXPathObjectPtr of type range using 2 nodes |
source code
|
|
Inherited from xmlCore :
__eq__ ,
__getattr__ ,
__hash__ ,
__iter__ ,
__ne__ ,
__str__ ,
c14nMemory ,
c14nSaveTo ,
free ,
get_children ,
get_content ,
get_doc ,
get_last ,
get_name ,
get_next ,
get_parent ,
get_prev ,
get_properties ,
get_type ,
removeNsDef ,
saveTo ,
serialize ,
walk_breadth_first ,
walk_depth_first ,
xpathEval ,
xpathEval2
|