EVOLUTION-MANAGER
Edit File: xmlElementSummary.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Frequency table of names of elements and attributes in XML...</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for xmlElementSummary {XML}"><tr><td>xmlElementSummary {XML}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Frequency table of names of elements and attributes in XML content</h2> <h3>Description</h3> <p>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) </p> <h3>Usage</h3> <pre> xmlElementSummary(url, handlers = xmlElementSummaryHandlers(url)) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>url</code></td> <td> <p>the source of the XML content, e.g. a file, a URL, a compressed file, or a character string</p> </td></tr> <tr valign="top"><td><code>handlers</code></td> <td> <p>the list of handler functions used to collect the information. These are passed to the function <code><a href="xmlEventParse.html">xmlEventParse</a></code> as the value for the <code>handlers</code> parameter. </p> </td></tr> </table> <h3>Value</h3> <p>A list with two elements </p> <table summary="R valueblock"> <tr valign="top"><td><code>nodeCounts</code></td> <td> <p>a named vector of counts where the names are the (XML namespace qualified) element names in the XML content</p> </td></tr> <tr valign="top"><td><code>attributes</code></td> <td> <p>a list with as many elements as there are elements in the <code>nodeCounts</code> element of the result. Each element of this sub-list gives the frequency counts for the different attributes seen within the XML elements with that name.</p> </td></tr> </table> <h3>Author(s)</h3> <p>Duncan Temple Lang</p> <h3>See Also</h3> <p><code><a href="xmlEventParse.html">xmlEventParse</a></code> </p> <h3>Examples</h3> <pre> xmlElementSummary(system.file("exampleData", "eurofxref-hist.xml.gz", package = "XML")) </pre> <hr /><div style="text-align: center;">[Package <em>XML</em> version 3.99-0.3 <a href="00Index.html">Index</a>]</div> </body></html>