---
name: "XML::XPath::Node::Attribute"
section: "3pm"
platform: "linux"
package: "perl-xml-xpath"
version: "1.49-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XML::XPath::Node::Attribute"
---

# XML::XPath::Node::Attribute(3pm)

a single attribute

## 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.
