This function turns an xml_fragment
into a character string, using
a performant c++ implementation.
# S3 method for xml_fragment
as.character(x, ...)# S3 method for xml_doc
as.character(x, use_prolog = TRUE, ...)
a character
with the xml representation of the fragment.
object to be coerced or tested.
further arguments passed to or from other methods.
if TRUE
the xml prolog with be included.
To suppress the prolog string either remove set use_prolog = FALSE
.
Other xml_fragment:
add_child_fragment()
,
as_frag()
,
as_xml_nodeset()
,
data_frag()
,
frag()
,
xml_fragment()