Learn R Programming

xmlwriter (version 0.1.1)

as.character.xml_fragment: Turn an xml_fragment into a character

Description

This function turns an xml_fragment into a character string, using a performant c++ implementation.

Usage

# S3 method for xml_fragment
as.character(x, ...)

# S3 method for xml_doc as.character(x, use_prolog = TRUE, ...)

Value

a character with the xml representation of the fragment.

Arguments

x

object to be coerced or tested.

...

further arguments passed to or from other methods.

use_prolog

if TRUE the xml prolog with be included. To suppress the prolog string either remove set use_prolog = FALSE.

See Also

Other xml_fragment: add_child_fragment(), as_frag(), as_xml_nodeset(), data_frag(), frag(), xml_fragment()