as_xml_string {rddi}R 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)


[Package rddi version 0.1.1 Index]