# perldoc > XML::DOM::Notation

---
type: CommandReference
command: XML::DOM::Notation
mode: perldoc
section: 
source: perldoc
---

## Quick Reference

- `$node->getName()` — returns the notation name
- `$node->setName($name)` — sets the notation name
- `$node->getSysId()` — returns the system ID
- `$node->setSysId($sysId)` — sets the system ID
- `$node->getPubId()` — returns the public ID
- `$node->setPubId($pubId)` — sets the public ID
- `$node->getBase()` — returns the base (passed by XML::Parser)
- `$node->getNodeName()` — returns the same as `getName()`

## Name

[XML::DOM::Notation](https://metacpan.org/pod/XML::DOM::Notation) — An XML NOTATION in [XML::DOM](https://metacpan.org/pod/XML::DOM)

## Synopsis

This node represents a Notation, e.g.

xml
<!NOTATION gs SYSTEM "GhostScript">
<!NOTATION name PUBLIC "pubId">
<!NOTATION name PUBLIC "pubId" "sysId">
<!NOTATION name SYSTEM "sysId">
## Methods

- `getName()` — returns the Notation name (first token after NOTATION keyword)
- `setName($name)` — sets the Notation name
- `getSysId()` — returns the system ID (token after optional SYSTEM keyword)
- `setSysId($sysId)` — sets the system ID
- `getPubId()` — returns the public ID (token after optional PUBLIC keyword)
- `setPubId($pubId)` — sets the public ID
- `getBase()` — returns the base passed by XML::Parser in the Notation handler
- `getNodeName()` — returns the same as `getName()`

## Examples

XML notation declarations:

xml
<!NOTATION gs SYSTEM "GhostScript">
<!NOTATION name PUBLIC "pubId">
<!NOTATION name PUBLIC "pubId" "sysId">
<!NOTATION name SYSTEM "sysId">
## See Also

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