class XdmNode extends XdmItem (View source)

Methods

getHead()

Get the first item in the sequence

from  XdmValue
itemAt(int $index)

Get the n'th item in the value, counting from zero

from  XdmValue
int
size()

Get the number of items in the sequence

from  XdmValue
addXdmItem(XdmItem $item)

Add item to the sequence at the end.

from  XdmValue
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.

from  XdmItem
bool
isAtomic()

Determine whether the item is an atomic value or a node. This method will return FALSE as the item is not atomic

getAtomicValue()

Provided the item is an atomic value we return the XdmAtomicValue otherwise return null

from  XdmItem
XdmNode|null
getNodeValue()

Provided the item is a node value we return the XdmNode otherwise return null

from  XdmItem
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

Details

XdmItem getHead()

Get the first item in the sequence

Return Value

XdmItem

XdmItem itemAt(int $index)

Get the n'th item in the value, counting from zero

Parameters

int $index

Return Value

XdmItem

int size()

Get the number of items in the sequence

Return Value

int

addXdmItem(XdmItem $item)

Add item to the sequence at the end.

Parameters

XdmItem $item

string getStringValue()

Get the string value of the item. For a node, this gets the string value of the node.

Return Value

string

bool isNode()

Determine whether the item is a node value or not.

Return Value

bool

bool isAtomic()

Determine whether the item is an atomic value or a node. This method will return FALSE as the item is not atomic

Return Value

bool

XdmAtomicValue|null getAtomicValue()

Provided the item is an atomic value we return the XdmAtomicValue otherwise return null

Return Value

XdmAtomicValue|null

XdmNode|null getNodeValue()

Provided the item is a node value we return the XdmNode otherwise return null

Return Value

XdmNode|null

int getNodeKind()

Get the kind of node

Return Value

int

string getNodeName()

Get the name of the node, as a EQName

Return Value

string

int getChildCount()

Get the count of child node at this current node

Return Value

int

int getAttributeCount()

Get the count of attribute nodes at this node

Return Value

int

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

Parameters

int $index

Return Value

XdmNode|null

XdmNode|null getParent()

Get the parent of this node. If parent node does not exist then return null

Return Value

XdmNode|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

Parameters

int $index

Return Value

XdmNode|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

Parameters

int $index

Return Value

string|null