xml_type(x)
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 DataCamp Workspace