xmlValue                 package:XML                 R Documentation

_E_x_t_r_a_c_t _t_h_e _c_o_n_t_e_n_t_s _o_f _a _l_e_a_f _X_M_L _n_o_d_e

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

     Some types of XML nodes have no children nodes, but are leaf nodes
     and simply contain text. Examples are `XMLTextMode',
     `XMLProcessingInstruction'. This function provides access to their
     raw contents. This has been extended to operate recursivel on
     arbitrary XML nodes that contain a single text node.

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

     xmlValue(x, ignoreComments = FALSE)

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

       x: the `XMLNode' object whose contents are to be  returned.

ignoreComments: a logical value which, if `TRUE' does not include the
          text in XML comment nodes. If this is `FALSE', the text in
          the comments is part of the return value. 

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

     The object stored in the  `value' slot of the `XMLNode' object.
     This is typically a string.

_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' `xmlName' `xmlAttrs' `xmlNamespace'

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

      node <- xmlNode("foo", "Some text")
      xmlValue(node)

      xmlValue(xmlTextNode("some more raw text"))

