toString.XMLNode             package:XML             R Documentation

_C_r_e_a_t_e_s _s_t_r_i_n_g _r_e_p_r_e_s_e_n_t_a_t_i_o_n _o_f _X_M_L _n_o_d_e

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

     This creates a string from a hierarchical XML node and its
     children just as it prints on the console or one might see it in a
     document.

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

     toString.XMLNode(x, ...)

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

       x: an object of class 'XMLNode'.

     ...: currently ignored

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

     This uses a textConnection object using the name .tempXMLOutput.
     Since this is global, it will overwrite any existing object of
     that name! As a result, this function cannot be used recursively
     in its present form.

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

     A character vector with one element, that being the string
     corresponding to the XML node's contents.

_N_o_t_e:

     This requires the Expat XML parser to be installed.

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

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

     'xmlNode' 'xmlTreeParse'

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

      x <- xmlRoot(xmlTreeParse(system.file("exampleData", "gnumeric.xml",
     package = "XML")))

      toString(x)

