powered by
Construct a comment node
xml_comment(content)
The comment content
x <- xml_new_document() r <- xml_add_child(x, "root") xml_add_child(r, xml_comment("Hello!")) as.character(x)
Run the code above in your browser using DataLab