as.character.xml_fragment {xmlwriter}R Documentation

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 class 'xml_fragment'
as.character(x, ...)

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

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.

Value

a character with the xml representation of the fragment.

See Also

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


[Package xmlwriter version 0.1.1 Index]