dtdElementValidEntry           package:XML           R Documentation

_D_e_t_e_r_m_i_n_e_s _w_h_e_t_h_e_r _a_n _X_M_L _e_l_e_m_e_n_t _a_l_l_o_w_s _a _p_a_r_t_i_c_u_l_a_r _t_y_p_e _o_f _s_u_b-_e_l_e_m_e_n_t.

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

     This tests whether 'name' is a legitimate tag to use as a direct
     sub-element of the 'element' tag according to the definition of
     the 'element' element in the specified DTD.  This is a generic
     function that dispatches on the element type, so that different
     version take effect for 'XMLSequenceContent', 'XMLOrContent',
     'XMLElementContent'.

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

     dtdElementValidEntry(element, name, pos=NULL)

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

 element: The 'XMLElementDef' defining the tag in which we are asking
          whether the sub-element can be used. 

    name: The name of the sub-element about which we are  querying the
          list of sub-tags within 'element'. 

     pos: An optional argument which, if supplied, queries whether the
          'name' sub-element is valid as the 'pos'-th child of
          'element'. 

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

     This is not intended to be called directly, but indirectly by the 
     'dtdValidElement' function.

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

     Logical value indicating whether the sub-element can appear in an
     'element' tag or not.

_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:

     'parseDTD', 'dtdValidElement', 'dtdElement'

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

      dtdFile <- system.file("exampleData", "foo.dtd",package="XML")
      dtd <- parseDTD(dtdFile) 
      
       dtdElementValidEntry(dtdElement("variables",dtd), "variable")

