LaTeXM...n::XML(3pm)

πŸ’– NAME πŸ’–

Okay bestie, this is the LaTeXML::Common::XML(3pm) manual page from User Contributed Perl Documentation, and the module is literally called "LaTeXML::Common::XML" β€” XML utilities. That's the whole vibe. πŸŽ€

✨ DESCRIPTION ✨

So this module provides utilities for accessing XML, along with some patches to XML::LibXML. No cap, that's the main character energy of this page. Here's the function cast, one by one, with every signature kept exactly as it appears:

  • element_nodes($node) β€” returns a list of the element children of $node. πŸ’…
  • text_in_node($node) β€” returns the string combining the text nodes within $node. ✨
  • isTeXtNode($node) β€” checks whether $node is a text node. Yes, that capitalization is iconic and exact. πŸ¦‹
  • isElementNode($node) β€” checks whether $node is a element node. 🌸
  • isChild($child,$parent) β€” checks whether $child is a child of $parent.
  • isDecscendant($child,$parent) β€” checks whether $child is a descendant of $parent. (The spelling isDecscendant is exactly what the manual says, bestie. 🫢)
  • isDecscendantOrSelf($child,$parent) β€” checks whether $child is a descendant of, or the same as, $parent.
  • new_node($nsURI,$tag,$children,%attributes) β€” creates a new element node with tag $tag (in the namespace $nsURI), with the children in the array ref $children (if any) and assigning the given attributes. πŸ‘‘
  • append_nodes($node,@children) β€” appends the given children to $node.
  • clear_node($node) β€” removes all element and text children from $node. Poof. πŸ’€
  • maybe_clone($node) β€” clones $node if it has a parent, otherwise returns it. Lowkey conditional cloning, highkey useful.
  • copy_attributes($to,$from) β€” copy all attributes from $from to $to.
  • rename_attribute($node,$from,$to) β€” rename the attribute $from to $to on the node $node.
  • remove_attr($node,@attr) β€” remove the given attributes from $node. Bye attributes. πŸ‘‹
  • get_attr($node,@attr) β€” returns the list of values for the given attributes on $node.
  • initialize_catalogs() β€” initialize XML::LibXML to recognize the catalogs given in LaTeXML.catalogs. 🧚
  • set_RDFa_prefixes($document,$map) β€” this method scans the document's RDFa attributes, extracting the prefixes used. These prefixes are then filtered through a $map of known RDFa prefixes and the ones allowed are declared globally for the document via the "prefix" attribute of its root element. It's giving RDFa bookkeeping realness. 🌈

🌸 AUTHOR 🌸

Bruce Miller <bruce.miller@nist.gov>, Deyan Ginev <deyan.ginev@nist.gov> β€” the authors ate, periodt. πŸ’–

Public domain software, produced as part of work done by the United States Government & not subject to copyright in the US. Slay, public domain. ✨


Cute sign-off time, bestie: this manual page footer is from perl v5.40.1, dated 2025-11-16, and the truncated manual name in the footer is LaTeXM...n::XML(3pm). Bye, love you, read your XML docs. πŸ’œπŸ«Ά

πŸ“¦ where this page comes from