Learn R Programming

XML (version 3.98-1.5)

xmlElementSummary: Frequency table of names of elements and attributes in XML content

Description

This function is used to get an understanding of the use of element and attribute names in an XML document. It uses a collection of handler functions to gather the information via a SAX-style parser. The distribution of attribute names is done within each "type" of element (i.e. element name)

Usage

xmlElementSummary(url, handlers = xmlElementSummaryHandlers(url))

Arguments

url
the source of the XML content, e.g. a file, a URL, a compressed file, or a character string
handlers
the list of handler functions used to collect the information. These are passed to the function xmlEventParse as the value for the handlers parameter.

Value

A list with two elements

See Also

xmlEventParse

Examples

Run this code
  xmlElementSummary(system.file("exampleData", "eurofxref-hist.xml.gz", package = "XML"))

Run the code above in your browser using DataLab