xmlElementSummary            package:XML            R Documentation

_F_r_e_q_u_e_n_c_y _t_a_b_l_e _o_f _n_a_m_e_s _o_f _e_l_e_m_e_n_t_s _a_n_d _a_t_t_r_i_b_u_t_e_s _i_n _X_M_L _c_o_n_t_e_n_t

_D_e_s_c_r_i_p_t_i_o_n:

     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)

_U_s_a_g_e:

     xmlElementSummary(url, handlers = xmlElementSummaryHandlers(url))

_A_r_g_u_m_e_n_t_s:

     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. 

_V_a_l_u_e:

     A list with two elements 

nodeCounts: a named vector of counts where the names are the (XML
          namespace qualified) element names in the XML content

attributes: a list with as many elements as there are elements in the
          'nodeCounts' 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.

_A_u_t_h_o_r(_s):

     Duncan Temple Lang

_S_e_e _A_l_s_o:

     'xmlEventParse'

_E_x_a_m_p_l_e_s:

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

