powered by
Determine the type of a node.
xml_type(x)
A document, node, or node set.
# NOT RUN { x <- read_xml("<foo> a <b /> <![CDATA[ blah]]></foo>") xml_type(x) xml_type(xml_contents(x)) # }
Run the code above in your browser using DataLab