libxmlVersion              package:XML              R Documentation

_Q_u_e_r_y _t_h_e _v_e_r_s_i_o_n _a_n_d _a_v_a_i_l_a_b_l_e _f_e_a_t_u_r_e_s _o_f _t_h_e _l_i_b_x_m_l _l_i_b_r_a_r_y.

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

     'libxmlVersion' retrieves the version of the libxml library used
     when installing this XML package. 'libxmlFeatures' returns a named
     logical vector indicating which features are enabled.

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

     libxmlVersion(runTime = FALSE)
     libxmlFeatures()

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

 runTime: a logical value indicating whether to retrieve the version
          information describing libxml  when the R package was
          compiled or the run-time version. These may be different if
          a) a new version of libxml2 is installed after the package is
          installed, b) if the package was installed as a binary
          package built on a different machine. 

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

     'libxmlVersion' returns a named list with fields 

   major: the major version number, either 1 or 2 indicating the old or
          new-style library.

   minor: the within version release number.

   patch: the within minor release version number


     'libxmlFeatures' returns a logical vector with names given by: '
     [1] "THREAD"     "TREE"       "OUTPUT"     "PUSH"       "READER"  
       [6] "PATTERN"    "WRITER"     "SAX1"       "FTP"        "HTTP"  
         [11] "VALID"      "HTML"       "LEGACY"     "C14N"      
     "CATALOG"    [16] "XPATH"      "XPTR"       "XINCLUDE"   "ICONV"  
        "ISO8859X"   [21] "UNICODE"    "REGEXP"     "AUTOMATA"   "EXPR"
           "SCHEMAS"    [26] "SCHEMATRON" "MODULES"    "DEBUG"     
     "DEBUG_MEM"  "DEBUG_RUN"  [31] "ZLIB"       '

_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.xmlsoft.org>, <URL:
     http://www.omegahat.org>

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

      ver <- libxmlVersion()
      if(is.null(ver)) {
        cat("Relly old version of libxml\n")
      } else {
        if(ver$major > 1) {
          cat("Using libxml2\n")
        }
      }

