1LaTeXML::Common::XML(3)User Contributed Perl DocumentatioLnaTeXML::Common::XML(3)
2
3
4
6 "LaTeXML::Common::XML" - XML utilities
7
9 This module provides utilities for accessing XML, along with some
10 patches to XML::LibXML.
11
12 "element_nodes($node)"
13 Returns a list of the element children of $node.
14
15 "text_in_node($node)"
16 Returns the string combining the text nodes within $node.
17
18 "isTeXtNode($node)"
19 Checks whether $node is a text node.
20
21 "isElementNode($node)"
22 Checks whether $node is a element node.
23
24 "isChild($child,$parent)"
25 Checks whether $child is a child of $parent.
26
27 "isDecscendant($child,$parent)"
28 Checks whether $child is a descendant of $parent.
29
30 "isDecscendantOrSelf($child,$parent)"
31 Checks whether $child is a descendant of, or the same as, $parent.
32
33 "new_node($nsURI,$tag,$children,%attributes)"
34 Creates a new element node with tag $tag (in the namespace $nsURI),
35 with the children in the array ref $children (if any) and assigning
36 the given attributes.
37
38 "append_nodes($node,@children)"
39 Appends the given children to $node.
40
41 "clear_node($node)"
42 Removes all element and text children from $node.
43
44 "maybe_clone($node)"
45 Clones $node if it has a parent, otherwise returns it.
46
47 "copy_attributes($to,$from)"
48 Copy all attributes from $from to $to.
49
50 "rename_attribute($node,$from,$to)"
51 Rename the attribute $from to $to on the node $node.
52
53 "remove_attr($node,@attr)"
54 Remove the given attributes from $node.
55
56 "get_attr($node,@attr)"
57 Returns the list of values for the given attributes on $node
58
59 "initialize_catalogs()"
60 Initialize XML::LibXML to recognize the catalogs given in
61 LaTeXML.catalogs.
62
63 "set_RDFa_prefixes($document,$map)"
64 This method scans the document's RDFa attributes, extracting the
65 prefixes used. These prefixes are then filtered through a $map of
66 known RDFa prefixes and the ones allowed are declared globally for
67 the document via the "prefix" attribute of its root element.
68
70 Bruce Miller <bruce.miller@nist.gov>, Deyan Ginev
71 <deyan.ginev@nist.gov>
72
74 Public domain software, produced as part of work done by the United
75 States Government & not subject to copyright in the US.
76
77
78
79perl v5.34.0 2022-01-19 LaTeXML::Common::XML(3)