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, ...)

# 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