XMLSource: XML Source

Description Usage Arguments Value See Also

View source: R/source.R

Description

Create an XML source.

Usage

1
XMLSource(x, parser = xml_contents, reader)

Arguments

x

a character giving a uniform resource identifier.

parser

a function accepting an XML document (as delivered by read_xml in package xml2) as input and returning XML elements/nodes.

reader

a function capable of turning XML elements/nodes as returned by parser into a subclass of TextDocument.

Value

An object inheriting from XMLSource, SimpleSource, and Source.

See Also

Source for basic information on the source infrastructure employed by package tm.

Vignette 'Extensions: How to Handle Custom File Formats', and readXML.


tm documentation built on April 7, 2021, 3:01 a.m.