# perldoc > XML::DOM::Comment

---
type: CommandReference
command: XML::DOM::Comment
mode: perldoc
section: ""
source: perldoc
---

## Quick Reference

- `XML::DOM::Comment` — An XML comment in XML::DOM

## Name

`XML::DOM::Comment` - An XML comment in XML::DOM

## Description

`XML::DOM::Comment` extends `XML::DOM::CharacterData` which extends `XML::DOM::Node`.

This node represents the content of a comment, i.e., all the characters between the starting `<!--` and ending `-->`. Note that this is the definition of a comment in XML, and, in practice, HTML, although some HTML tools may implement the full SGML comment structure.

## See Also

- [XML::DOM](https://metacpan.org/pod/XML::DOM)
- [XML::DOM::CharacterData](https://metacpan.org/pod/XML::DOM::CharacterData)
- [XML::DOM::Node](https://metacpan.org/pod/XML::DOM::Node)