xml2 (version 1.2.0)

xml_comment: Construct a comment node

Description

Construct a comment node

Usage

xml_comment(content)

Arguments

content

The comment content

Examples

Run this code
# NOT RUN {
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 DataCamp Workspace