XML::DOM::Entity(3)
π XML::DOM::Entity π
Okay bestie, welcome to the XML::DOM::Entity(3) manual page β this is the one about an XML ENTITY in XML::DOM, and itβs lowkey iconic for anyone deep in DOM node lore π¦
β¨ NAME β¨
XML::DOM::Entity β an XML ENTITY in XML::DOM π
πΈ DESCRIPTION πΈ
XML::DOM::Entity extends XML::DOM::Node. No cap, thatβs the whole glow-up.
This node represents an Entity declaration, e.g.:
<!ENTITY % draft 'INCLUDE'>
<!ENTITY hatch-pic SYSTEM "../grafix/OpenHatch.gif" NDATA gif>
The first one is called a parameter entity and is referenced like this: %draft; The 2nd is a (regular) entity and is referenced like this: &hatch-pic; β¨
π METHODS π
getNotationName
Returns the name of the notation for the entity.
Not Implemented. The DOM Spec says: For unparsed entities, the name of the notation for the entity. For parsed entities, this is null. (This implementation does not support unparsed entities.) π
getSysId
Returns the system id, or undef.
getPubId
Returns the public id, or undef.
π«Ά Additional methods not in the DOM Spec π«Ά
isParameterEntity
Whether it is a parameter entity (%ent;) or not (&ent;) π
getValue
Returns the entity value.
getNdata
Returns the NDATA declaration (for general unparsed entities), or undef.
This gorgeous lil page is from perl v5.42.0, dated 2022-05-23, and itβs literally XML::DOM::Entity(3) β bye bestie, stay parsed π
π¦ 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