xml_comment: Construct a comment node

Description Usage Arguments Examples

View source: R/classes.R

Description

Construct a comment node

Usage

1
xml_comment(content)

Arguments

content

The comment content

Examples

1
2
3
4
x <- xml_new_document()
r <- xml_add_child(x, "root")
xml_add_child(r, xml_comment("Hello!"))
as.character(x)

xml2 documentation built on Aug. 9, 2019, 5:06 p.m.