newXMLNamespace             package:XML             R Documentation

_A_d_d _a _n_a_m_e_s_p_a_c_e _d_e_f_i_n_i_t_i_o_n _t_o _a_n _X_M_L _n_o_d_e

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

     This function, and associated methods, define a name space 'prefix
     = URI' combination for the given XML node. It can also optionally
     make this name space the default namespace for the node.

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

     newXMLNamespace(node, namespace, prefix = names(namespace), set = FALSE)

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

    node: the XML node for which the name space is to be defined.

namespace: the namespace(s). This can be a simple character vector
          giving the URI, a named character vector giving the prefix =
          URI pairs, with the prefixes being the names  of the
          character vector, or one or more (a list) of 'XMLNamespace'
          objects, e.g. returned from a call to 
          'xmlNamespaceDefinitions'

  prefix: the prefixes to be associated with the URIs given in
          'namespace'. 

     set: a logical value indicating whether to  set the  namespace for
          this node to this newly created name space definition. 

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

     An name space definition object whose class corresponds  to the
     type of XML node given in 'node'.

_N_o_t_e:

     Currently, this only applies to XMLInternalNodes. This will be
     rectified shortly and apply to RXMLNode and its non-abstract
     classes.

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

     Duncan Temple Lang

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

     ~put references to the literature/web site here ~

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

     Constructors for different XML node types - 'newXMLNode' 'xmlNode'

