Scroll to navigation

LaTeXML::Common::XML(3pm) User Contributed Perl Documentation LaTeXML::Common::XML(3pm)

NAME

"LaTeXML::Common::XML" - XML utilities

DESCRIPTION

This module provides utilities for accessing XML, along with some patches to XML::LibXML.

Returns a list of the element children of $node.
Returns the string combining the text nodes within $node.
Checks whether $node is a text 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.
"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.
Removes all element and text children from $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 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>

COPYRIGHT

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

2024-02-27 perl v5.38.2