Documentation

XML::Node::Attribute

Method in Node

string Attribute(const string&in name, const string&in def = "") const

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.

string name

string def

Returns string