xmlChildren               package:XML               R Documentation

_G_e_t_s _t_h_e _s_u_b-_n_o_d_e_s _w_i_t_h_i_n _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:

     This returns a list of XMLNode objects within an XMLNode object.

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

     xmlChildren(x)

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

       x: an object of class XMLNode.

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

     A list whose elements are sub-nodes of the user-specified XMLNode.
     These are also of class XMLNode.

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

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

     'xmlChildren','xmlSize', 'xmlTreeParse'

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

       fileName <- system.file("exampleData", "mtcars.xml", package="XML")
       doc <- xmlTreeParse(fileName)
       names(xmlChildren(doc$doc$children[["dataset"]]))

