startElement.SAX             package:XML             R Documentation

_G_e_n_e_r_i_c _M_e_t_h_o_d_s _f_o_r _S_A_X _c_a_l_l_b_a_c_k_s

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

     This is a collection of generic functions for which one can write
     methods so that they are called in repsonse to different SAX
     events. The idea is that one defines methods for different classes
     of the '.state' argument and dispatch to different methods based
     on that argument. The functions represent the different SAX
     events.

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

     startElement.SAX(name, atts, .state = NULL)
     endElement.SAX(name, .state = NULL)
     comment.SAX(content, .state = NULL)
     processingInstruction.SAX(target, content, .state = NULL)
     text.SAX(content, .state = NULL)
     entityDeclaration.SAX(name, base, sysId, publicId, notationName,  .state = NULL)
     .InitSAXMethods(where = "package:XML")

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

    name: the name of the XML element or entity being declared

    atts: 

 content: the value/string in the processing instruction or comment

  target: the target of the processing instruction, e.g. the R in
          '<?R....>'

    base: x

   sysId: the system identifier for this entity

publicId: the public identifier for the entity

notationName: name of the notation specification

  .state: the state object on which the user-defined methods should
          dispatch.

   where: the package in which the class and method definitions should
          be defined. This is almost always unspecified.

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

     Each method should return the (potentially modified) state value.

_N_o_t_e:

     This no longer requires the Expat XML parser to be installed.
     Instead, we use libxml's SAX parser.

_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.xmlsoft.org>

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

     'xmlEventParse'

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

