XML::DO...listDecl(3)
π XML::DOM::AttlistDecl π
okay bestie, welcome to the XML::DO...listDecl(3) page from User Contributed Perl Documentation β yes, the manual name is a whole little truncated moment, but weβre here for XML::DOM::AttlistDecl, no cap. π«Ά
β¨ NAME β¨
XML::DOM::AttlistDeclβ an XMLATTLISTdeclaration inXML::DOM. iconic. π
πΈ 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 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 β¨
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."CDATA"or"(male|female)".)defaultβ the default value enclosed in quotes (!), the string#IMPLIEDor the string#REQUIRED.fixedβ whether the attribute is'#FIXED'(default is0.)
mwah π this pageβs source/version is perl v5.42.0, dated 2022-05-23, and it lives under XML::DO...listDecl(3) β bye bestie, go slay some XML! πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-XML-DOM 1.46-160000.2.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms