xml_cdata: Construct a cdata node

View source: R/classes.R

xml_cdataR Documentation

Construct a cdata node

Description

Construct a cdata node

Usage

xml_cdata(content)

Arguments

content

The CDATA content, does not include ⁠<![CDATA[⁠

Examples

x <- xml_new_root("root")
xml_add_child(x, xml_cdata("<d/>"))
as.character(x)

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