jOOX Changelog

What's new in jOOX 2.0.1

May 7, 2024
  • Features and Improvements:
  • [#183] Add Match.attrNames(): Set
  • Bug Fixes:
  • [#188] Upgrade xalan to 2.7.3 due to CVE-2022-34169
  • [#190] JOOX.$() doesn't support whitespace between comment and

New in jOOX 0.9.4 (Jan 19, 2012)

  • Features and improvements:
  • Allow for marshalling / unmarshalling JAXB objects
  • Add JOOX.$(Node)
  • Add JOOX.$(Context) as a convenience method for JOOX.$(Context.match())
  • Add JOOX.$(NodeList) as a convenience
  • Bug fixes:
  • Avoid NumberFormatException in text(Class) if an element is empty. Return null instead

New in jOOX 0.9.3 (Oct 3, 2011)

  • Features and improvements
  • Add Match.andSelf() to add the previous Match to the new Match
  • Add Match.each() to return a List containing every matched element as its own Match
  • Add Match.reverse() to reverse the order of matched elements
  • Add Match.child(String) to find the first child matching a tag name
  • Performance improvements:
  • Avoid constructing new Filter objects in all(), none(), even(), etc.
  • Bad performance on Match.has(...) methods
  • Avoid calling size() several times during iterations
  • Don't return Collections.unmodifiableList() from
  • Match.get()
  • Match.get(int) should not try { } catch (
  • IndexOutOfBoundsException e) to access elements. Do the calculations instead
  • Bad performance on Match.find(...) methods
  • Avoid calling methods in for loops, especially NodeList.getLength()

New in jOOX 0.9.2 (Aug 19, 2011)

  • Features and improvements:
  • Add XPath support
  • Use jOOQ's type conversion methods to add more convenience in .text(), .texts(), .attr(), .attrs() - for numeric and boolean types
  • Document index behaviour for call-backs
  • Allow for negative indexes in .eq()
  • Enhance .eq(int...) to accept several indexes
  • Implement Match.equals() and Match.hashCode()
  • Add $(InputStream), $(InputSource), $(File), and others to load XML from resources
  • Add Match.document() to retrieve the underlying document from a Match object
  • Add $(Reader)
  • Add Context.matchSize() and Context.elementSize()
  • API changes (backwards-incompatible):
  • Change API for callback types Each, Content, Filter, Mapper to receive a general Context type, instead of index and Element

New in jOOX 0.9.1 (Aug 19, 2011)

  • Features and improvements:
  • Allow for the creation of elements
  • Add index filters and access-by-index for .children(), texts(), .contents(), .tags(), .ids()
  • Add access-by-index to .text(), .content(), .child()
  • Add filter JOOX.at(int...) to filter for indexes
  • Add Match.isEmpty()
  • Add convenience method to get all XPath's of matched elements
  • API changes (backwards-incompatible):
  • Rename static factory method joox() to $()
  • Rename X into Match