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 April 4, 2025, 2:05 a.m.