Release History

VersionDateDescription
1.6.1 2005-05-16
1.6 2005-04-15
1.5.2 2004-11-15
1.5.1 2004-10-29
1.5 2004-09-03
1.5-rc1 2004-07-04
1.5-beta-2 2004-05-12
1.5-beta-1 2004-03-25

Get the RSS feed of the last changes

Release 1.6.1 - 2005-05-16

TypeChangesBy
update Updated the XPP2 implementation to version 2.1.10. Thanks to Wolfgang Baer . maartenc
fix Fixed a problem with XMLWriterthat was causing too many new lines to be written to the resulting XML. Thanks to Thomas Fromm . maartenc
update Include more information about the cause if an XPathExceptionor InvalidXPathExceptionis thrown. Thanks to Gili Tzabari . maartenc

Release 1.6 - 2005-04-15

TypeChangesBy
add Added a methods to SAXReaderallowing to specify the encoding used when reading XML sources. Thanks to Filip Jirsak . maartenc
update Changed the DocumentHelper.parseText(String)method to make sure that the XML encoding is always set (if known) on the returned Document, even if the used SAXParser doesn't provide a way to retrieve that encoding. maartenc
add Added a setXMLEncoding(String)method to the Documentinterface. maartenc
fix Removed a static OutputFormatfield from AbstractBranch. This can cause problems if multiple threads are using the asXML()method simultaniously. Thanks to John Plaxton . maartenc
fix Fixed a whitespace problem with the pretty-print OutputFormat. Thanks to Brett Porter . maartenc
fix Fixed a bug in the DefaultElement.setContent(List)method that caused incorrectly resetting the parent of the nodes in the list. Thanks to Peter Schaefer . maartenc
remove Removed persistencepackage and sub-package. wolfftw
update Modified SAXEventRecorderto accomodate sax events generated when writing a DOMDocument. wolfftw
fix Fixed a problem in AbstractDocument.asXML()when an encoding was specified on the Document. Thanks to Pieter Valcke . maartenc
fix The DefaultNamespace.isReadOnly()method now returns false. This fixes issues with cloning this Node. maartenc
update Updated DocumentFactoryto create the instance untill the first time it is needed. Thanks to Brian Topping . maartenc
fix Fixed a bug in Stylesheetwhen an xpath expressions was used to select the nodes. Thanks to Brett Porter . maartenc
add Added a SingletonStrategyclass for managing singletons. This allows to use different strategies for singletons, like: one instance per VM, one instance per thread, ... This change removed the usage of ThreadLocals. ddlucas

Release 1.5.2 - 2004-11-15

TypeChangesBy
remove Removed the internal Aelfred2 parser due to incompatible license. maartenc
add Added a SAXEventRecorderthat can replay SAX events at a later time. This provides an alternative serialization approach. wolfftw

Release 1.5.1 - 2004-10-29

TypeChangesBy
fix Fixed problem where the namespace prefix was lost using DOMDocument. Thanks to Ara Vartanian . maartenc
fix Fixed bug in Document.asXML()which ignored the encoding of the document. Thanks to David Karlsen . maartenc
update Updated NamespaceCacheto use WeakReferences to allow Namespaceobjects to be garbage collected. maartenc
update Updated JAXBReaderto allow ElementHandlers to be notified when the specified path is encountered, without having to unmarshall XML content. Thanks to Wonne Keysers . maartenc
fix Fixed a bug in XMLWriterwhere a NullPointerExceptionwas thrown if trying to write a CData section containing nullcontent. Thanks to Daniel Hopper . maartenc
update Modified the internal Aelfred2 parser to no longer support the SAX2 Extensions 1.1 API. As a result, the SAX2 sources are no included with dom4j. maartenc
add Added support for the XPP3 parser. Thanks to Pelle Braendgaard . maartenc

Release 1.5 - 2004-09-03

TypeChangesBy
fix Fixed bug in XMLWriter.characters(...)where the escapeText property of the writer was ignored. Thanks to Dion Gillard . maartenc
fix Fixed the Stylesheet.removeRule(Rule)method which didn't remove the Rulebut added it again. Thanks to Peter Stibrany . maartenc
fix Fixed bug in BackedListcausing new elements to always be added at the first position if the size of the list is 1. Thanks to Robert Koberg . maartenc
update Upgraded the internal Aelfred2 parser to the latest version. maartenc
add Added initial JAXB support. Thanks to Wonne Keysers . maartenc
update Updated the STAX classes to provide document encoding. Thanks to Christian Niles . maartenc
add Added getXMLEncoding()method to org.dom4j.Documentwhich returns the encoding of the document. maartenc

Release 1.5-rc1 - 2004-07-04

TypeChangesBy
remove Removed the DocumentHelper.parseText(String xml, String encoding)method that was introduced in dom4j-1.5-beta2. maartenc
update Added the GNU JAXP DOM implementation to the default list of implementations in DOMWriter. maartenc
update Added method to ElementStackand DispatchHandlerto check if a handler is registered for a given path. Thanks to Wonne Keysers . maartenc
update ElementStackis now a public class. Thanks to Wonne Keysers . maartenc
update SAXContentHandler.endElement(...)can now throw SAXException. Thanks to Wonne Keysers . maartenc
fix Added the namespace-prefix of attributes to the paths returned by Attribute.getPath(Element context)and Attribute.getUniquePath(Element context). Thanks to Aaron Bell . maartenc
fix Element.declaredNamespaces()now only returns the namespaces that are declared on that element. Element.additionalNamespaces()now only returns namespaces that are declared on that element and is not the same as the namespace of that element. Thanks to Marc Pellmann . maartenc
fix Escape the values of internal DTD entity declarations when serializing to XML. Thanks to Marc Pellmann . maartenc
fix Fixed bug in AbstractElementcausing Node.getPath(Element context)to return an absolute path, even if a the current element was the same as the context element. The relative path "." is now returned. Thanks to Rob Grzywinski . maartenc
add Added method to Elementto retrieve all Namespacesfor a given URI. Thanks to Thomas Diesler . maartenc
fix Fixed bug in DOMReadercausing namespace declarations to get lost in some situations. Thanks to Thomas Diesler . maartenc
add Added a booleanValueOf(Object node)method to XPath. Thanks to Ben Scarlet . maartenc
fix Fixed bug in BeanElementwhich prevented proper execution of the bean samples. Thanks to Wonne Keysers . maartenc
update STAXEventWriternow uses XMLEventConsumerinstead of XMLEventWriter. Thanks to Christian Niles . maartenc
fix Fixed bug in SAXReaderthat caused problems parsing files in OSX. Thanks to Paul Libbrecht . maartenc
fix Fixed bug in XMLWriterthat caused whitespace to be added between successive calls of the characters(...)method. This is used particularly frequent in Apache Jelly. Thanks to Paul Libbrecht . maartenc
update Improved performance of NamespaceCachein multithreaded environments. Thanks to Brett Finnell . maartenc

Release 1.5-beta-2 - 2004-05-12

TypeChangesBy
add Added flag to OutputFormatthat supresses newline after XML declaration. wolfftw
update Upgraded dependencies to their latest version on ibiblio. maartenc
add Added method to DocumentHelperthat allows user to specify encoding when parsing an xml String. Thanks to Todd Wolff . maartenc
fix Fixed a ClassCastException bug in BeanElement. maartenc
fix Fixed a bug in SAXContentHandlerwhich caused a NullPointerExceptionin some situations. maartenc
fix Fixed bug which prevented an element's namespace prefix from being registered for use in xpath expressions. Thanks to Todd Wolff . maartenc
fix Fixed bug in XMLWriterthat caused duplication of the default namespace declaration. Thanks to Todd Wolff . maartenc
fix Added a bunch of patches to make the dom4j DOM classes more DOM compliant. Thanks to Curt Arnold . maartenc
update Fixed bug in DispatchHandlerwhich made the handler not reusable. Thanks to Ricardo Leon . maartenc
fix Fixed bug in SAXContentHandlerthat caused incorrect CDATA section parsing. Thanks to Todd Wolff . maartenc
fix Fixed bug in SAXContentHandlerthat caused incorrect entity handling. maartenc
fix Fixed bug in XMLWritercausing padding to be disabled, even if enabled in the specified outputformat. Thanks to Bo Gundersen . maartenc
add Added initial support for STaX streams. Thanks to Christian Niles . maartenc

Release 1.5-beta-1 - 2004-03-25

TypeChangesBy
fix Fixed encoding bug in Document.asXML()and DocumentHelper.parseText(). maartenc
fix Fixed bug in SAXReaderthat caused problems resolving relative URIs when parsing java.io.FileObjects. Thanks to Kohsuke Kawaguchi . maartenc
update The iterators returned by the Element.elementIterator(...)methods now support remove(). maartenc
update DOMWriterwrites now DOM Level 2 attributes and elements. Thanks to Geert Dendoncker and Joury Gokel . maartenc
update Use latest implementation of the Aelfred parser. maartenc
fix Fixed some problems with internal/external DTD declarations. Thanks to Bryan Thompson . maartenc
update Upgraded to Jaxen 1.1 beta 2. maartenc
update Ignore attribute order when comparing elements in NodeComparator. maartenc
update Fixed bug in XMLWriterwhere namespace declarations were duplicated. maartenc
fix Fixed bug in parsing a ProcessingInstruction. Thanks to Vladimir Kralik . maartenc
fix Added support for Stylesheetmodes. Thanks to Mark Diggory . maartenc
update Don't escape " and ' characters in attribute values if it's not necessary. Thanks to Christian Niles . maartenc
fix Fixed some DOMNodeHelperissues. Thanks to Henner Kollmann . maartenc
fix Fixed some datatype issues. Thanks to Thomas Draier . maartenc
fix Fixed an bug where the EntityResolver was not set on the XMLReader. maartenc
fix Fixed multithreaded access on DefaultElement. slehmann
fix Fixed problem parsing XML Files. Thanks to Geoffrey Vlassaks . maartenc
update Added xml:space attribute support based on XML Specification 1.0. ddlucas
update Maven build of dom4j is now nearly complete. Maven is now used for the website generation. maartenc
fix Fixed some bugs in BackedList. Thanks to Alessandro Vernet . maartenc