Skip to contents

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, use_prolog = FALSE, ...)

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

Arguments

x

object to be coerced or tested.

use_prolog

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

...

further arguments passed to or from other methods.

Value

a character with the xml representation of the fragment.

See also