Constructs a source for an <acronym>XML</acronym> file.
构造的<acronym> XML</首字母缩写文件的来源。
用法----------Usage----------
XMLSource(x, parser, reader, encoding = "UTF-8")
参数----------Arguments----------
参数:x
Either a character identifying a file or a connection.
一个character确定一个文件或connection。
参数:parser
A function accepting an <acronym>XML</acronym> tree (as delivered by xmlTreeParse in package XML) as input and returning a list of <acronym>XML</acronym> elements.
Afunction接受的<acronym>的XML </首字母缩写树(交付xmlTreeParse包XML)作为输入并返回一个列表<acronym> XML </首字母缩写>元素。
参数:reader
A function capable of turning <acronym>XML</acronym> elements as returned by parser into a subclass of TextDocument.
Afunction能够把<acronym> XML </首字母缩写元素返回parser到的一个子类TextDocument。
参数:encoding
A character giving the encoding of x.
Acharacter的编码x。
值----------Value----------
An object of class XMLSource which extends the class Source representing an <acronym>XML</acronym> file.
对象的类XMLSource扩展类Source的同比<acronym>XML </首字母缩写>文件。
(作者)----------Author(s)----------
Ingo Feinerer
参见----------See Also----------
Vignette 'Extensions: How to Handle Custom File Formats'.
Vignette的扩展:如何处理自定义文件格式“。