Skip to contents

Reads a xml fragment from a string, a connection or a raw vector using xml2::read_xml(), and turns it into a xml_fragment().

Usage

read_fragment(x, ...)

Arguments

x

A string, a connection or a raw vector

...

passed to xml2::read_xml()

Value

an object of class xml_fragment