xmlClone                 package:XML                 R Documentation

_C_r_e_a_t_e _a _c_o_p_y _o_f _a_n _i_n_t_e_r_n_a_l _X_M_L _d_o_c_u_m_e_n_t _o_r _n_o_d_e

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

     These methods allow the caller to create a copy of an XML internal
     node.  This is useful, for example, if we want to use the node or
     document in an  additional context, e.g. put the node into another
     document while leaving it in the existing document.  Similarly, if
     we want to remove nodes to simplify processing, we probably want
     to copy it so that the changes are not reflected in the original
     document.

     At present, the newly created object is not garbage collected.

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

     xmlClone(node, recursive = TRUE, addFinalizer = FALSE, ...)

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

    node: the object to be cloned

recursive: a logical value indicating whether the entire object and all
          its descendants should be duplicated/cloned ('TRUE') or just
          the top-level object ('FALSE')

addFinalizer: typically a logical value indicating whether to bring
          this new object under R's regular garbage collection. This
          can also be a reference to a C routine which is to be used as
          the finalizer. See 'getNativeSymbolInfo'.

     ...: additional parameters for methods

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

     A new R object representing the object.

_A_u_t_h_o_r(_s):

     Duncan Temple Lang

_R_e_f_e_r_e_n_c_e_s:

     libxml2

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

     'xmlParse'   'newXMLNode' 'newXMLDoc'

