XMLSource {tm}R Documentation

XML Source

Description

Constructs a source for an XML file.

Usage

XMLSource(object, parser, reader, encoding = "UTF-8")

Arguments

object either a character identifying the file or a connection.
parser a function accepting an XML tree (as delivered by xmlTreeParse in package XML) as input and returning a list of XML elements.
reader a function capable of turning XML elements as returned by parser into a subclass of TextDocument.
encoding a character giving the encoding of the file.

Value

An S4 object of class XMLSource which extends the class Source representing an XML file.

Author(s)

Ingo Feinerer

See Also

Vignette 'Extensions: How to Handle Custom File Formats'.


[Package tm version 0.3-4.1 Index]