LaTeXML...on::XML(3)
π NAME π
okay so welcome to the LaTeXML...on::XML(3) page β aka LaTeXML::Common::XML β from the User Contributed Perl Documentation, bestie π«Ά
LaTeXML::Common::XML β XML utilities β¨
β¨ DESCRIPTION β¨
So like, LaTeXML::Common::XML is the module that provides utilities for accessing XML, along with some patches to XML::LibXML. That's the whole vibe π
Here are all the helpers, in the exact order they show up:
element_nodes($node)β Returns a list of the element children of$node. Just the element kids, no cap πtext_in_node($node)β Returns the string combining the text nodes within$node. It's giving "grab all the text and smoosh it together" π«ΆisTeXtNode($node)β Checks whether$nodeis a text node. Yep, that's the whole check πisElementNode($node)β Checks whether$nodeis an element node. Iconic little yes/no.isChild($child,$parent)β Checks whether$childis a child of$parent.isDecscendant($child,$parent)β Checks whether$childis a descendant of$parent. (Yes, the spelling is exactlyisDecscendant, 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. All of them. gone. πmaybe_clone($node)β Clones$nodeif it has a parent, otherwise returns it.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.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 theprefixattribute of its root element.
π AUTHOR π
Bruce Miller <bruce.miller@nist.gov>, Deyan Ginev <deyan.ginev@nist.gov> π
πΈ COPYRIGHT πΈ
Public domain software, produced as part of work done by the United States Government & not subject to copyright in the US.
this page is chillin' with perl v5.42.3 and dated 2024-02-26 β bye bestie, go slay those XML nodes π
β¨
π¦ where this page comes from
- nixos 26.05: perl5.42.3-LaTeXML 0.8.8
- nixpkgs unstable: perl5.42.3-LaTeXML 0.8.8
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms