Matt Sergeant > XML-XPath > XML::XPath::Node::Attribute

Download:
XML-XPath-1.13.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  36
Open  1
View/Report Bugs
Source  

NAME ^

Attribute - a single attribute

API ^

new ( key, value, prefix )

Create a new attribute node.

getName

Returns the key for the attribute

getLocalName

As getName above, but without namespace information

getNodeValue / getData

Returns the value

setNodeValue

Sets the value of the attribute node.

getPrefix

Returns the prefix

getNamespace

Return the namespace.

toString

Generates key="value", encoded correctly.

syntax highlighting: