Skip to content

Releases: r-lib/xml2

xml2 1.3.6

04 Dec 18:07
Compare
Choose a tag to compare
  • Now compatible with libxml2 2.12.0 and later (@KNnut).

  • Fixed format string issues detected in R-devel.

  • Remove unused dependencies on glue, withr and lifecycle (@mgirlich).

  • print() is faster for very long xml_nodeset inputs (#366, @MichaelChirico).

  • xml_attr(), xml_attrs(), xml_double(), xml_integer(), xml_length(),
    xml_name(), xml_path(), xml_text(), and xml_type() no longer use
    S3 dispatch but instead dispatch in C, leading to considerable performance
    improvements in many cases (@mgirlich, #400).

  • xml_find_int() analogous to xml_find_num() for returning integers
    matched by an XPath (#365, @MichaelChirico).

  • xml_serialize() now includes the document type so that xml_unserialize()
    works also for HTML documents (#407, @HenrikBengtsson).

xml2 1.3.5

06 Jul 12:15
Compare
Choose a tag to compare
  • Small speedup for xml_find_all() (@mgirlich, #393).

  • Fixes for R CMD check problems.

xml2 1.3.4

27 Apr 13:30
Compare
Choose a tag to compare
  • Fixes for R CMD check problems.

  • Windows: update to libxml2 2.10.3

xml2 1.3.3

30 Nov 14:45
Compare
Choose a tag to compare
  • Hadley Wickham is now (again) the maintainer.

  • xml2 has been re-licensed as MIT (#317).

  • xml_find_all.xml_node() fails more informatively the xpath parameter is the wrong type (@MichaelChirico)

  • xml_find_all.xml_nodeset() gains a flatten argument to control whether to return a single nodeset or a list of nodesets (#311, @jakejh)

  • write_xml() and write_html() now return NULL invisibly, as they did prior to version 1.3.0 (#307)

  • XPtr gets explicit copy constructor and assignment operator definitions, which were two missing components of the Rule of three (@MichaelChirico)

  • Windows: update to libxml2 2.9.10 and libxslt 1.1.34 and add ucrt libs

xml2 1.3.2

01 May 12:19
Compare
Choose a tag to compare
  • read_html() and read_xml() now error if passed strings of length greater than one (#121)

  • read_xml.raw() had an inadvertent regression in 1.3.0 and is now again fixed (#300)

  • Compilation fix on macOS 10.15.4 (@kevinushey, #296)

xml2 1.3.1

09 Apr 15:36
Compare
Choose a tag to compare
  • read_html() now again works with HTML files with non-ASCII encodings (#293).

xml2 1.3.0

03 Apr 13:38
Compare
Choose a tag to compare
  • Removes the Rcpp dependency

xml2 1.2.5

31 Mar 18:41
Compare
Choose a tag to compare
  • Fix compilation issue on macOS versions after High Sierra when not using homebrew supplied libxml2

xml2 1.2.4

10 Mar 20:30
Compare
Choose a tag to compare
  • Fix potential dangling pointer with internal asXmlChar() function (@michaelquinn32, #287).

  • as_xml_document() now handles cases with text nodes trailing normal nodes (#274).

  • xml_add_child() can now create nodes with a par attribute. These previously errored due to partial name matching of the parent function in the internal create_node() function. (@jennybc, #285)

  • libxml2_version() now returns a semantic version rather than alphanumeric version, so "2.9.10" > "2.9.9" (#277)

xml2 1.2.2

12 Aug 12:16
Compare
Choose a tag to compare
  • Export S4 classes with documentation, so they can be used in other packages
    without Warnings (@nuest, #267)