xmlName                 package:XML                 R Documentation

_E_x_t_r_a_c_e_s _t_h_e _t_a_g _n_a_m_e _o_f _a_n _X_M_L_N_o_d_e _o_b_j_e_c_t.

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

     Each XMLNode object has a tag name introduced in the '<name ...>'
     entry in an XML document. This function returns that name.

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

     xmlName(node, full = FALSE)

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

    node: The XMLNode object whose tag name is being requested.

    full: a logical value indicating whether to prepend the namespace
          prefix, if there is one, or return just the name of the XML
          element/node. 'TRUE' means prepend the prefix.

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

     A character vector of length \textit{1} which is the 'node$name'
     entry.

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

     'xmlChildren', 'xmlAttrs', 'xmlTreeParse'

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

      fileName <- system.file("exampleData", "test.xml", package="XML") 
      doc <- xmlTreeParse(fileName)
      xmlName(xmlRoot(doc)[[1]])

