xmlContainsEntity            package:XML            R Documentation

_C_h_e_c_k_s _i_f _a_n _e_n_t_i_t_y _i_s _d_e_f_i_n_e_d _w_i_t_h_i_n _a _D_T_D.

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

     A DTD contains entity and element definitions. These functions
     test whether a DTD contains a definition for a particular named
     element or entity.

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

     xmlContainsEntity(name, dtd)
     xmlContainsElement(name, dtd)

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

    name: The name of the element or entity being queried.

     dtd: The DTD in which to search for the entry.

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

     See 'parseDTD' for more information about DTDs, entities and
     elements.

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

     A logical value indicating whether the entry was found in the
     appropriate list of  entitiy or element definitions.

_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', 'dtdEntity', 'dtdElement',

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

      dtdFile <- system.file("exampleData", "foo.dtd", package="XML")
      foo.dtd <- parseDTD(dtdFile)
      
       # Look for entities.
      xmlContainsEntity("foo", foo.dtd)
      xmlContainsEntity("bar", foo.dtd)

       # Now look for an element
      xmlContainsElement("record", foo.dtd)

