xml_comment: Construct a comment node

View source: R/classes.R

xml_commentR Documentation

Construct a comment node

Description

Construct a comment node

Usage

xml_comment(content)

Arguments

content

The comment content

Examples

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

hadley/xml2 documentation built on Jan. 10, 2024, 3:52 p.m.