1XML::DOM::AttlistDecl(3U)ser Contributed Perl DocumentatiXoMnL::DOM::AttlistDecl(3)
2
3
4

NAME

6       XML::DOM::AttlistDecl - An XML ATTLIST declaration in XML::DOM
7

DESCRIPTION

9       XML::DOM::AttlistDecl extends XML::DOM::Node but is not part of the DOM
10       Level 1 specification.
11
12       This node represents an ATTLIST declaration, e.g.
13
14        <!ATTLIST person
15          sex      (male|female)  #REQUIRED
16          hair     CDATA          "bold"
17          eyes     (none|one|two) "two"
18          species  (human)        #FIXED "human">
19
20       Each attribute definition is stored a separate AttDef node. The AttDef
21       nodes can be retrieved with getAttDef and added with addAttDef.  (The
22       AttDef nodes are stored in a NamedNodeMap internally.)
23
24   METHODS
25       getName
26           Returns the Element tagName.
27
28       getAttDef (attrName)
29           Returns the AttDef node for the attribute with the specified name.
30
31       addAttDef (attrName, type, default, [ fixed ])
32           Adds a AttDef node for the attribute with the specified name.
33
34           Parameters:
35            attrName the attribute name.
36            type     the attribute type (e.g. "CDATA" or "(male|female)".)
37            default  the default value enclosed in quotes (!), the string
38           #IMPLIED or
39                        the string #REQUIRED.
40            fixed    whether the attribute is '#FIXED' (default is 0.)
41
42
43
44perl v5.36.0                      2023-01-20          XML::DOM::AttlistDecl(3)
Impressum