Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

dom4j: flexible XML framework for Java / News: Recent posts

dom4j 1.6.1 released

The dom4j team is pleased to announce the dom4j 1.6.1 release!

Changes in this version include:

Fixed bugs:

o Fixed a problem with XMLWriter that was causing too many new lines to be
written to the resulting XML. Thanks to Thomas Fromm.

Changes:

o Updated the XPP2 implementation to version 2.1.10. Thanks to Wolfgang
Baer.
o Include more information about the cause if an XPathException or
InvalidXPathException is thrown. Thanks to Gili Tzabari.... read more

Posted by Maarten Coene 2005-05-21

dom4j 1.6 released!

The dom4j team is pleased to announce the dom4j 1.6 release!

http://dom4j.org

dom4j: the flexible XML framework for Java

Changes in this version include:

New Features:

o Added a methods to SAXReader allowing to specify the encoding used when
reading XML sources. Thanks to Filip Jirsak.
o Added a setXMLEncoding(String) method to the Document interface.
o Added a SingletonStrategy class 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. ... read more

Posted by Maarten Coene 2005-04-15

dom4j 1.5.2 released

The dom4j team is pleased to announce the dom4j 1.5.2 release!

http://dom4j.org

dom4j: the flexible XML framework for Java

Changes in this version include:

New Features:

o Added a SAXEventRecorder that can replay SAX events at a later time. This
provides an alternative serialization approach.

Removed features:

o Removed the internal Aelfred2 parser due to incompatible license.

Have fun!
-Maarten

Posted by Maarten Coene 2004-11-16

dom4j 1.5.1 released

The dom4j team is pleased to announce the dom4j 1.5.1 maintenance release!
You can find a download link on http://www.dom4j.org

Changes in this version include:

New Features:

o Added support for the XPP3 parser. Thanks to Pelle Braendgaard.

Fixed bugs:

o Fixed problem where the namespace prefix was lost using DOMDocument. Thanks
to Ara Vartanian.
o Fixed bug in Document.asXML() which ignored the encoding of the document.
Thanks to David Karlsen.
o Fixed a bug in XMLWriter where a NullPointerException was thrown if trying
to write a CData section containing null content. Thanks to Daniel Hopper.... read more

Posted by Maarten Coene 2004-10-29

dom4j 1.5 RC1 released

The dom4j team is pleased to announce the dom4j 1.5-rc1 release!

http://www.dom4j.org

Changes in this version include:

New Features:

o Added method to Element to retrieve all Namespaces for a given URI. Thanks
to Thomas Diesler.
o Added a booleanValueOf(Object node) method to XPath. Thanks to Ben Scarlet.

Fixed bugs:

o Added the namespace-prefix of attributes to the paths returned by
Attribute.getPath(Element context) and Attribute.getUniquePath(Element
context). Thanks to Aaron Bell.
o 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.
o Escape the values of internal DTD entity declarations when serializing to
XML. Thanks to Marc Pellmann.
o Fixed bug in AbstractElement causing 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.
o Fixed bug in DOMReader causing namespace declarations to get lost in some
situations. Thanks to Thomas Diesler.
o Fixed bug in BeanElement which prevented proper execution of the bean
samples. Thanks to Wonne Keysers.
o Fixed bug in SAXReader that caused problems parsing files in OSX. Thanks to
Paul Libbrecht.
o Fixed bug in XMLWriter that caused whitespace to be added between
successive calls of the characters(...) method. Thanks to Paul Libbrecht. ... read more

Posted by Maarten Coene 2004-07-04

dom4j 1.5 beta2 released

Hi,

dom4j 1.5 beta 2 has been released. You can download it from http://www.dom4j.org

A list of changes is given below:
- Added flag to OutputFormat that supresses newline after XML declaration.
- Upgraded dependencies to their latest version on ibiblio.
- Added method to DocumentHelper that allows user to specify encoding when parsing an xml String (contributed by Todd Wolff).
- Fixed a ClassCastException bug in BeanElement.
- Fixed a bug in SAXContentHandler which caused a NullPointerException in some situations.
- Fixed bug which prevented an element's namespace prefix from being registered for use in xpath expressions (contributed by Todd Wolff).
- Fixed bug in XMLWriter that caused duplication of the default namespace declaration (reported by Todd Wolff).
- Added a bunch of patches to make the dom4j DOM classes more DOM compliant (contributed by Curt Arnold).
- Fixed bug in DispatchHandler which made the handler not reusable (reported by Ricardo Leon).
- Fixed bug in SAXContentHandler that caused incorrect CDATA section parsing (contributed by Todd Wolff).
- Fixed bug in SAXContentHandler that caused incorrect entity handling.
- Fixed bug in XMLWriter causing padding to be disabled, even if enabled in the specified outputformat (reported by Bo Gundersen).
- Added initial support for STaX streams (contributed by Christian Niles).
... read more

Posted by Maarten Coene 2004-05-12

dom4j 1.5 beta1 release

Hi all,

a first beta of the new dom4j has been released and can be downloaded from http://dom4j.org/ . This release contains several bugfixes and patches, like:

  • Fixed encoding bug in Document.asXML() and DocumentHelper.parseText().
  • Fixed bug in SAXReader that caused problems resolving relative URIs when parsing java.io.File Objects (reported by Kohsuke Kawaguchi).
  • The iterators returned by the Element.elementIterator(...) methods now support remove().
  • DOMWriter writes now DOM Level 2 attributes and elements (reported by Geert Dendoncker and Joury Gokel).
  • Use latest implementation of the Aelfred parser.
  • Fixed some problems with internal/external DTD declarations (reported by Bryan Thompson).
  • Upgraded to Jaxen 1.1 beta 2.
  • Ignore attribute order when comparing Elements in NodeComparator.
  • Fixed bug in XMLWriter where namespace declarations were duplicated.
  • Fixed bug in parsing a Processing Instruction (reported by Vladimir Kralik).
  • Added support for Stylesheet modes (reported by Mark Diggory).
  • Don't escape " and ' characters in attribute values if it's not necessary (contributed by Christian Niles).
  • Fixed some DOMNodeHelper issues (reported by Henner Kollmann).
  • Fixed some datatype issues (reported by Thomas Draier).
  • Fixed an bug where the EntityResolver was not set on the XMLReader.
  • Fixed multithreaded access on DefaultElement.
  • Fixed problem parsing XML Files (reported by Geoffrey Vlassaks).
  • Added xml:space attribute support based on XML Specification 1.0.
  • Maven build of dom4j is now nearly complete. Maven is now used for the website generation.
  • Fixed some bugs in BackedList (contributed by Alessandro Vernet).
Posted by Maarten Coene 2004-03-26

dom4j 1.4. released

Finally after a much longer delay than we expected the 1.4 release of dom4j is out. dom4j is a simple and flexible open source library for working with XML, XPath and XSLT on the Java platform using the Java Collections Framework with full integration with DOM, SAX and JAXP.

Posted by James Strachan 2003-04-09

dom4j 1.3 released

dom4j is a simple and flexible open source library for working with XML, XPath and XSLT on the Java platform using the Java Collections Framework with full integration with DOM, SAX and JAXP.

This release is primarily a bug fix release.

For more details please go to http://dom4j.org

Posted by James Strachan 2002-03-14

dom4j 1.2 released

dom4j is a simple and flexible open source library for working with XML, XPath and XSLT on the Java platform using the Java Collections Framework with full integration with DOM, SAX and JAXP.

This release includes:-

  • more optimal whitespace handling which can be useful for parsing SOAP documents or data centric XML

  • new Swing TableModel for the easy displaying of XML in Swing using XPath

  • numerous patches, optimisations and bug fixes... read more

Posted by James Strachan 2002-02-14

dom4j 1.1 released

This release is primarily a bug fix release. Please see http://dom4j.org for details.

This release also adds the ability to view DTD declarations from an XML document.

Posted by James Strachan 2001-11-02

dom4j 0.9 released

This release includes:-

  • full support for the Jaxen XPath engine (http://jaxen.org)

  • improved output support via XMLWriter, JAXP and SAX filters

  • various bug fixes

Posted by James Strachan 2001-08-09

dom4j 0.8 released

This release is primarily a bug fix release.

Posted by James Strachan 2001-07-30

dom4j 0.7 released

This release is primarily a bug fix release.

This release also includes support for the SAXPath API for the parsing of XPath expressions (http://saxpath.org).

Posted by James Strachan 2001-07-23

dom4j 0.6 released

This is primarily a bug fix release.

This release also includes support for Java Serialization as well as a number of performance enhancements.

Posted by James Strachan 2001-07-04

dom4j 0.5 released

This release is primarily a bug fix release though the following features have been added

  • NodeComparator available for comparing documents by value

  • Variety of new helper methods such as DocumentHelper.parseText( String );

  • Branch.normalize() method for normalizing Text nodes like the DOM API

  • new easy to use builder methods such that 'Element Construction Set' style methods can be used to create documents... read more

Posted by James Strachan 2001-06-21

dom4j 0.4 released

The new 0.4 release and further documentation can be found at:-

http://dom4j.org

This release includes

  • a new more flexible & powerful event notification mechanism

  • alpha XML Schema Data Types support

  • many optimisations

  • a variety of bug fixes

Posted by James Strachan 2001-05-29

dom4j 0.3 released

The new 0.3 release of dom4j has just been made.

This release is primarily a bug fix release with some performance enhancements.
There are a number of improvements such as:-

  • new OutputFormat.createPrettyPrint() method to create standard pretty
    printing of XML documents

  • new matrix-concat() XPath extension function

  • XML writing has been optimised

  • smaller JAR distributions after removing redundant Antlr code... read more

Posted by James Strachan 2001-05-11

dom4j 0.2 released

dom4j 0.2 has just been released at http://dom4j.org

The main new features include:-

  • improved XPath integration
  • full JAXP, DOM, SAX and XSLT integration
  • better I/O support
  • new SAXValidator for validating Documents
  • cleaner API
Posted by James Strachan 2001-04-12

DOM4J 0.1 released

The first release of DOM4J project is finally out.

http://dom4j.org

DOM4J is a flexible XML framework for Java. It is a simple, easy to use, Java interface based API which comes fully integrated with XPath together will support for DOM, SAX, JAXP and Java 2 Collections.

Posted by James Strachan 2001-01-31