DESCRIPTION

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

This node represents an \s-1ATTLIST\s0 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 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.)

\$1

getName

Returns the Element tagName.

getAttDef (attrName)

Returns the AttDef node for the attribute with the specified name.

addAttDef (attrName, type, default, [ fixed ])

Adds a AttDef node for the attribute with the specified name. Parameters: attrName the attribute name. type the attribute type (e.g. \*(L"\s-1CDATA\s0\*(R" or \*(L"(male|female)\*(R".) default the default value enclosed in quotes (!), the string #IMPLIED or

             the string #REQUIRED.

fixed whether the attribute is '#FIXED' (default is 0.)