as_xml_string: Shortcut to text representation of DDI XML

View source: R/xml_interop.R

as_xml_stringR Documentation

Shortcut to text representation of DDI XML

Description

Functionally equivalent to as.character(as_xml(ddi_node_obj)).

Usage

as_xml_string(x, ...)

Arguments

x

A ddi_node object.

...

Arguments forwarded to as_xml().

Value

A string containing the text representation of XML.

Examples

cb <- ddi_codeBook(ddi_stdyDscr(ddi_citation(ddi_titlStmt(ddi_titl("Sample")))))
as_xml_string(cb)


Global-TIES-for-Children/rddi documentation built on Oct. 24, 2022, 9:50 p.m.