jsoup version 0.2.2 released

2010-Feb-07 I am happy to announce that jsoup version 0.2.2 is now available for download.

jsoup is a Java library for working with real-world HTML. It provides a very convenient API for extracting and manipulating data, using the best of DOM, CSS, and jquery-like methods.

What’s new

  • jsoup releases are now available in the Maven central repository. This allows you to use Maven to fetch and manage the jsoup jars and dependencies. See the download page for the XML to use in your POM.
  • New features for classes: supports Element addClass, removeClass, toggleClass; also collection class methods on Elements.
  • New feature for manipulating HTML: supports Element.wrap(String html) and Elements.wrap(String html). This makes it easy to wrap a div inside of a new containing div.
  • New Selector syntax: supports the E + F adjacent sibling selector
  • New Selector systax: supports the E ~ F preceding sibling selector
  • New: supports Element.elementSiblingIndex() and Node.siblingIndex()
  • Improved document normalisation.
  • Improved HTML string output format (pretty-printing)
  • Fixed absolute URL resolution issue when a base tag has no href.

If you have any suggestions for the next release, I would love to hear them: please get in touch via the mailing list.