xclass            package:AffyCompatible            R Documentation

(_A_d_v_a_n_c_e_d) _C_o_n_s_t_r_u_c_t _R _o_b_j_e_c_t_s _f_r_o_m _X_M_L _d_o_c_u_m_e_n_t _q_u_e_r_i_e_s

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

     This function takes an xml object, created from 'readXml', and an
     xpath query referencing an element of the document,and returns an
     R object represneting the element.

     The xpath query must retrive an element, not an attribute.

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

     xclass(doc, xpathq, prefix = character(0))

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

     doc: An 'XMLInternalDocument' retrieved using 'readXml'.

  xpathq: A length-1 character string representing an xpath query into
          the document.

  prefix: A prefix used to map, when necessary, between the XML class
          name and the corresponding R class. For 'NetAffx'-based
          classes, the prefix is Affx; no prefix is required for DTT
          or ARR documents.

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

     An R object corresponding to the class(es) referenced by the xpath
     query.

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

     Martin Morgan

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

     <URL: http://www.w3.org/TR/xpath> provides a very useful
     description of xpath. Addiitonal references are in the vignette
     `Retrieving MAGE and ARR sample attributes'.

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

     The vignettes `Retrieving MAGE and ARR sample attributes' and
     `Annotation retrieval with NetAffxResource' for detailed
     illustration of use.

     'readXml' for appropriately reading XML documents.

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

     example(readXml)

