xmlEventHandler             package:XML             R Documentation

_D_e_f_a_u_l_t _h_a_n_d_l_e_r_s _f_o_r _t_h_e _S_A_X-_s_t_y_l_e _e_v_e_n_t _X_M_L _p_a_r_s_e_r

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

     This is a function that returns a closure instance  containing the
     default handlers for use with  'xmlEventParse' for parsing XML
     documents via the SAX-style parsing.

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

     xmlEventHandler()

_D_e_t_a_i_l_s:

     These handlers simply build up the DOM tree and thus  perform the
     same job as 'xmlTreeParse'. It is here more as an example,
     reference and a base that users can extend.

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

     The return value is a list of functions which are used as
     callbacks by the internal XML parser when it encounters certain
     XML elements/structures. These include items such as the start of
     an element, end of an element, processing instruction,  text node,
     comment, entity references and definitions, etc.

startElement: 

endElement: 

processingInstruction: 

    text: 

 comment: 

externalEntity: 

entityDeclaration: 

     dom: 

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

     Duncan Temple Lang

_R_e_f_e_r_e_n_c_e_s:

     <URL: http://www.w3.org/XML>, <URL: http://www.jclark.com/xml>,
     <URL: http://www.omegahat.org>

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

     'xmlEventParse' 'xmlTreeParse'

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

      xmlEventParse(system.file("exampleData", "mtcars.xml", package="XML"),
                    handlers=xmlEventHandler())

