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$nodeis a text node. Yes, that capitalization is iconic and exact. π¦isElementNode($node)β checks whether$nodeis a element node. πΈisChild($child,$parent)β checks whether$childis a child of$parent.isDecscendant($child,$parent)β checks whether$childis a descendant of$parent. (The spellingisDecscendantis exactly what the manual says, bestie. π«Ά)isDecscendantOrSelf($child,$parent)β checks whether$childis 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$nodeif it has a parent, otherwise returns it. Lowkey conditional cloning, highkey useful.copy_attributes($to,$from)β copy all attributes from$fromto$to.rename_attribute($node,$from,$to)β rename the attribute$fromto$toon 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()β initializeXML::LibXMLto recognize the catalogs given inLaTeXML.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$mapof 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. π
π COPYRIGHT π
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
- ubuntu resolute: latexml 0.8.8-4 Β· PD
- ubuntu stonking: latexml 0.8.8-4 Β· PD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms