XMLSource: XML Source

View source: R/source.R

XMLSourceR Documentation

XML Source

Description

Create an XML source.

Usage

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 Sept. 11, 2024, 6:47 p.m.