XML::DOM::XMLDecl(3)

πŸ’– NAME πŸ’–

okay bestie, meet XML::DOM::XMLDecl(3) from User Contributed Perl Documentation β€” it's the XML declaration situation in XML::DOM, and it's lowkey a whole vibe. πŸ’…

🌸 DESCRIPTION 🌸

So XML::DOM::XMLDecl extends XML::DOM::Node, but heads up: it is not part of the DOM Level 1 specification. Not me pointing at the spec like… it's giving extension energy, no cap.

It contains the XML declaration, e.g. this exact icon:

<?xml version="1.0" encoding="UTF-16" standalone="yes"?>

Also see XML::DOM::Document::getXMLDecl β€” that's the see-also, bestie. 🫢

✨ METHODS ✨

  • getVersion and setVersion (version) β€” returns and sets the XML version. At the time of this writing, the version should always be "1.0". periodt.
  • getEncoding and setEncoding (encoding) β€” undef may be specified for the encoding value. slay.
  • getStandalone and setStandalone (standalone) β€” undef may be specified for the standalone value. iconic.

mwah πŸ’‹ that's the whole page, bestie β€” brought to you by perl v5.42.0, dated 2022-05-23, and serving XML::DOM::XMLDecl(3) realness. πŸŽ€βœ¨

πŸ“¦ where this page comes from