Create an XML source.
XMLSource(x, parser = xml_contents, reader)a character giving a uniform resource identifier.
a function accepting an XML document (as delivered by
    read_xml in package xml2) as input and returning
    XML elements/nodes.
a function capable of turning XML elements/nodes as
    returned by parser into a subclass of TextDocument.
An object inheriting from XMLSource, SimpleSource,
  and Source.
Source for basic information on the source infrastructure
  employed by package tm.
Vignette 'Extensions: How to Handle Custom File Formats', and
  readXML.