Create an XML source.
XMLSource(x, parser = xml_contents, reader)
An object inheriting from XMLSource
, SimpleSource
,
and Source
.
a character giving a uniform resource identifier.
a function accepting an XML document (as delivered by
read_xml
in package xml2) as input and returning
XML elements/nodes.
a function capable of turning XML elements/nodes as
returned by parser
into a subclass of TextDocument
.
Source
for basic information on the source infrastructure
employed by package tm.
Vignette 'Extensions: How to Handle Custom File Formats', and
readXML
.