parseSchemaDoc           package:XMLSchema           R Documentation

_P_a_r_s_e _a_n _X_M_L _s_c_h_e_m_a _d_o_c_u_m_e_n_t _a_n_d _r_e_p_l_a_c_e _t_h_e _i_n_c_l_u_d_e _a_n_d _i_m_p_o_r_t _n_o_d_e_s

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

     This function parses an XML document and then looks for import and
     include nodes that are part of an XML schema (i.e. in the
     appropriate namespace identified by 'namespaces'). For any such
     nodes, it "substitutes" those with the contents of the referenced
     schema in the 'schemaLocation' attribute (assuming there is one).

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

     parseSchemaDoc(url, removeComments = TRUE,
                    namespaces = c(xs = "http://www.w3.org/2001/XMLSchema"),
                    followImports = TRUE, followIncludes = followImports)

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

     url: the location or content of the XML document. This can be a
          URL, name of a regular or compressed file, or the XML content
          itself.

removeComments: this controls whether comment nodes are removed from
          the document after it is read in. This can simplify the
          processing of the schema. 

namespaces: a character vector giving the name space definitions which
          are used to identify the standard XML schema. Since there are
          different versions of the XML schema specification, i.e. 1999
          and 2001, we allow the user to specify the namespace URI. The
          prefix/name is irrelevant as we change this to "xs" 

followImports: a logical value indicating whether to process  xs:import
          nodes within the resulting document  by reading the
          referenced document and inserting its contents into this
          document

followIncludes: a logical value indicating whether to process 
          xs:import nodes within the resulting document  by reading the
          referenced document and inserting its contents into this
          document

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

     An XMLInternalDocument.

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

     Duncan Temple Lang

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

     'xmlParse'

