dtdIsAttribute              package:XML              R Documentation

_Q_u_e_r_y _i_f _a _n_a_m_e _i_s _a _v_a_l_i_d _a_t_t_r_i_b_u_t_e _o_f _a _D_T_D _e_l_e_m_e_n_t.

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

     Examines the definition of the DTD element definition identified
     by 'element' to see if it supports an attribute named 'name'.

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

     dtdIsAttribute(name, element, dtd)

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

    name: The name of the attribute being queried

 element: The name of the element whose definition is to be used to
          obtain the list of valid attributes.

     dtd: The DTD containing the definition of the elements,
          specifically 'element'.

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

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

     A logical value indicating if the list of attributes suppported by
     the  specified element has an entry named 'name'. This does
     indicate what type of value that attribute has, whether it is
     required, implied, fixed, etc.

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

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

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

         # true
       dtdIsAttribute("numRecords", "dataset", foo.dtd)

         # false
       dtdIsAttribute("date", "dataset", foo.dtd)

