# perldoc > XML::DOM::AttDef

---
type: CommandReference
command: XML::DOM::AttDef
mode: perldoc
section: 3
source: perldoc
---

## Quick Reference

- `getName()` — Returns the attribute name
- `getDefault()` — Returns the default value, or undef
- `isFixed()` — Whether the attribute value is fixed
- `isRequired()` — Whether the attribute value is required
- `isImplied()` — Whether the attribute value is implied

## Name

XML::DOM::AttDef — A single XML attribute definition in an ATTLIST in XML::DOM

## Description

`XML::DOM::AttDef` extends `XML::DOM::Node`, but is not part of the DOM Level 1 specification. Each object of this class represents one attribute definition in an AttlistDecl.

### Methods

- `getName()` — Returns the attribute name
- `getDefault()` — Returns the default value, or undef
- `isFixed()` — Whether the attribute value is fixed (see #FIXED keyword)
- `isRequired()` — Whether the attribute value is required (see #REQUIRED keyword)
- `isImplied()` — Whether the attribute value is implied (see #IMPLIED keyword)

## See Also

- `XML::DOM`
- `XML::DOM::Node`