Documentation

XML::Node

Class

A node within an XML tree.

Methods

Operator bool x = obj
Returns bool

Get the tag name of the node. For example, <abc> will return "abc".

Returns string

Get the first child node within this node.

Returns XML::Node

Get the last child node within this node.

Returns XML::Node

Get the child node within this node that matches the tag name. For example, to get the tag <abc>, call Child("abc").

Returns XML::Node

Get the next sibling in the parent of this node. For example, if the node you're calling it on is <abc>, it will return <def> in this tree: <root><abc/><def/></root>

Returns XML::Node

Get an attribute within this node. For example, the node <abc x="y"> has an attribute named "x" with a value "y". If the attribute does not exist, the def parameter is returned.

Returns string

Get the content text within this node.

Returns string