Construct a cdata node
Examples
x <- xml_new_root("root")
xml_add_child(x, xml_cdata("<d/>"))
as.character(x)
#> [1] "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<root><![CDATA[<d/>]]></root>\n"
Construct a cdata node
x <- xml_new_root("root")
xml_add_child(x, xml_cdata("<d/>"))
as.character(x)
#> [1] "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<root><![CDATA[<d/>]]></root>\n"