Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

XMLSource

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

Text Mining Package

v0.7-8
GPL-3
Authors
Ingo Feinerer [aut, cre] (<https://orcid.org/0000-0001-7656-8338>), Kurt Hornik [aut] (<https://orcid.org/0000-0003-4198-9911>), Artifex Software, Inc. [ctb, cph] (pdf_info.ps taken from GPL Ghostscript)
Initial release
2020-11-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.