perldoc > XML::DOM::AttlistDecl

📛 NAME

XML::DOM::AttlistDecl — An XML ATTLIST declaration in XML::DOM.

🚀 Quick Reference

Use CaseCommandDescription
Create an ATTLIST declarationXML::DOM::AttlistDecl->new(...)Creates a new ATTLIST declaration node.
Get element name$decl->getName()Returns the element tagName.
Get attribute definition$decl->getAttDef($attrName)Returns the AttDef node for the specified attribute.
Add attribute definition$decl->addAttDef($attrName, $type, $default, [$fixed])Adds an AttDef node for the attribute.

📖 Description

XML::DOM::AttlistDecl extends XML::DOM::Node but is not part of the DOM Level 1 specification.

This node represents an ATTLIST declaration, e.g.

<!ATTLIST person
  sex      (male|female)  #REQUIRED
  hair     CDATA          "bold"
  eyes     (none|one|two) "two"
  species  (human)        #FIXED "human">

Each attribute definition is stored as a separate AttDef node. The AttDef nodes can be retrieved with getAttDef and added with addAttDef. (The AttDef nodes are stored in a NamedNodeMap internally.)

🔧 Methods

XML::DOM::AttlistDecl
📛 NAME 🚀 Quick Reference 📖 Description
🔧 Methods

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-17 16:37 @216.73.216.237
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!