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)

xml2 documentation built on May 29, 2024, 1:28 a.m.