Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] XOM 1.0d10 available

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] XOM 1.0d10 available
  • Date: Sun, 9 Feb 2003 14:26:29 -0500

I've posted XOM 1.0d10 in the usual location:

http://www.cafeconleche.org/XOM/

This primary focus of this release is namespaces. First, it fixes all the namespace bugs reported here over the last couple of weeks. I've added unit tests to catch all these in the future. It also makes one API change. The declareNamespace method is once again addNamespaceDeclaration.

Under the hood, however, there are much more significant changes in namespace handling, and these are likely to break some existing applications. In particular,

* The namespace prefix of an element in the default namespace (including
no namespace at all) is now the empty string, not null.

* getNamespaceDeclarationCount now counts all the local namespaces of
the element; not just additional namespace declarations. It has at least
one entry for the namespace of the element (even if the element is in no
namespace), one namespace for each attribute in a namespace, and one
namespace for each additional namespace declaration. However, namespaces
used multiple times are only counted once. Namespaces in-scope from an
ancestor but not directly used on the element are not included.
getNamespacePrefix(int i) iterates across this list of local namespaces.
Chances are all code that calls either of these two methods will need to
be rewritten.

* getNamespacePrefix("") should now always return the default namespace
in scope. If no default namespace is in scope it returns the empty
string, not null.


--

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo AT metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
| Processing XML with Java (Addison-Wesley, 2002) |
| http://www.cafeconleche.org/books/xmljava |
| http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA |
+----------------------------------+---------------------------------+
| Read Cafe au Lait for Java News: http://www.cafeaulait.org/ |
| Read Cafe con Leche for XML News: http://www.cafeconleche.org/ |
+----------------------------------+---------------------------------+



  • [XOM-interest] XOM 1.0d10 available, Elliotte Rusty Harold, 02/09/2003

Archive powered by MHonArc 2.6.24.

Top of Page