XMLSource {tm} | R Documentation |
Constructs a source for an XML file.
XMLSource(object, parser, reader, encoding = "UTF-8")
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. |
An S4 object of class XMLSource
which extends the
class Source
representing an XML file.
Ingo Feinerer
Vignette 'Extensions: How to Handle Custom File Formats'.