---
name: "XML::XPath::Node::Comment"
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::Comment"
---

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

an XML comment: \<!--comment--\>

## NAME

Comment - an XML comment: \<!--comment--\>

## API

### new ( data )

Create a new comment node.

### getValue / getData

Returns the value in the comment

### toString

Returns the comment with -- encoded as a numeric entity (if it exists in the comment text).
