This package provides facilities for the S language to parse XML files, URLs and strings, using either the DOM (Document Object Model)/tree-based approach, or the event-driven SAX (Simple API for XML) mechanism;
parse HTML documents,
perform XPath queries on a document,
generate XML content to buffers, files, URLs, and internal XML trees;
read DTDs as S objects.
It is an interface to the Libxml2 library. It can be combined with the RCurl package for parsing documents that require more involved HTTP requests to fetch the document.