XdmNode
class XdmNode extends XdmItem (View source)
Methods
Get the string value of the item. For a node, this gets the string value of the node.
Determine whether the item is an atomic value or a node. This method will return FALSE as the item is not atomic
Provided the item is an atomic value we return the XdmAtomicValue otherwise return null
Provided the item is a node value we return the XdmNode otherwise return null
Get the kind of node
Get the name of the node, as a EQName
Get the count of child node at this current node
Get the count of attribute nodes at this node
Get the n'th child node at this node. If the child node selected does not exist then return null
Get the parent of this node. If parent node does not exist then return null
Get the n'th attribute node at this node. If the attribute node selected does not exist then return null
Get the n'th attribute node value at this node. If the attribute node selected does not exist then return null
Details
XdmItem
getHead()
Get the first item in the sequence
XdmItem
itemAt(int $index)
Get the n'th item in the value, counting from zero
int
size()
Get the number of items in the sequence
addXdmItem(XdmItem $item)
Add item to the sequence at the end.
string
getStringValue()
Get the string value of the item. For a node, this gets the string value of the node.
bool
isNode()
Determine whether the item is a node value or not.
bool
isAtomic()
Determine whether the item is an atomic value or a node. This method will return FALSE as the item is not atomic
XdmAtomicValue|null
getAtomicValue()
Provided the item is an atomic value we return the XdmAtomicValue otherwise return null
XdmNode|null
getNodeValue()
Provided the item is a node value we return the XdmNode otherwise return null
int
getNodeKind()
Get the kind of node
string
getNodeName()
Get the name of the node, as a EQName
int
getChildCount()
Get the count of child node at this current node
int
getAttributeCount()
Get the count of attribute nodes at this node
XdmNode|null
getChildNode(int $index)
Get the n'th child node at this node. If the child node selected does not exist then return null
XdmNode|null
getParent()
Get the parent of this node. If parent node does not exist then return null
XdmNode|null
getAttributeNode(int $index)
Get the n'th attribute node at this node. If the attribute node selected does not exist then return null
string|null
getAttributeValue(int $index)
Get the n'th attribute node value at this node. If the attribute node selected does not exist then return null