XML::DO...truction(3)

🌸 NAME 🌸

okay so bestie, this is XML::DO...truction(3) from User Contributed Perl Documentation, and it’s all about XML::DOM::ProcessingInstruction β€” literally an XML processing instruction in XML::DOM. slay. πŸ’…


✨ DESCRIPTION ✨

XML::DOM::ProcessingInstruction extends XML::DOM::Node. no cap, that’s the family tree. 🌳

It represents a "processing instruction", which XML uses as a way to keep processor-specific information right there in the text of the document. here’s the iconic example:

<?PI processing instruction?>

In that example, PI is the target and processing instruction is the data. periodt. πŸ’–

πŸ” METHODS πŸ”

🎯 getTarget

The target of this processing instruction. XML defines this as being the first token following the markup that begins the processing instruction. iykyk. ✨

πŸ“ getData and setData (data)

The content of this processing instruction. This is from the first non white space character after the target to the character immediately preceding the ?>. that’s the whole range, bestie β€” no skipping. 🫢


signed, sealed, and delivered by perl v5.42.0 on 2022-05-23 β€” bye bestie, go slay some XML πŸ’…πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from