Learn R Programming

xml2 (version 1.3.6)

xml_cdata: Construct a cdata node

Description

Construct a cdata node

Usage

xml_cdata(content)

Arguments

content

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

Examples

Run this code
x <- xml_new_root("root")
xml_add_child(x, xml_cdata(""))
as.character(x)

Run the code above in your browser using DataLab