[R] How to make XML support Expat?

Duncan Temple Lang duncan at wald.ucdavis.edu
Sat Oct 24 20:38:23 CEST 2009

Hi Joh.

What particular aspects of expat do you want that libxml2 and
the XML package currently cannot provide?

The early versions of the XML package (for the first few years)
could support expat and libxml2 as the C++/C-level parsers.
However, the support for expat was not maintained, so while
it could be resurrected and I have thought about it at several
times, I doubt it would compile out of the box now as
expat has most likely changed significantly.

If you wanted to experiment with the expat support in the package,

  R CMD INSTALL --configure-args='--with-expat'  XML

and that will endeavor to find the expat libraries, etc.



Johannes Graumann wrote:
> Hi,
> How can I make the result of the following lines "TRUE"?
>> install.packages("XML")
>> library(XML)
>> supportsExpat()
> [1] FALSE
> I'm on linux, looked into the actual package, but don't seem to be able to 
> wrap my head around how to compile this in ...
> Any pointers are welcome,
> Thanks Joh
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list