LaTeXML...on::XML(3)

πŸ“¦ version 0.8.8, in nixos 26.05, nixpkgs unstable

πŸ’– 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 $node is a text node. Yep, that's the whole check πŸ’…
  • isElementNode($node) β€” Checks whether $node is an element node. Iconic little yes/no.
  • isChild($child,$parent) β€” Checks whether $child is a child of $parent.
  • isDecscendant($child,$parent) β€” Checks whether $child is a descendant of $parent. (Yes, the spelling is exactly isDecscendant, 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. All of them. gone. πŸ’€
  • maybe_clone($node) β€” Clones $node if it has a parent, otherwise returns it.
  • 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.
  • 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.

πŸ‘‘ AUTHOR πŸ‘‘

Bruce Miller <bruce.miller@nist.gov>, Deyan Ginev <deyan.ginev@nist.gov> πŸ’–

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