xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: Elliotte Harold <elharo AT metalab.unc.edu>
- To: Steve Loughran <steve.loughran AT gmail.com>
- Cc: xom-interest <xom-interest AT lists.ibiblio.org>
- Subject: Re: [XOM-interest] why set the namespace again?
- Date: Tue, 31 Oct 2006 15:54:41 -0500
Steve Loughran wrote:
Is the assumtion here that because getLocalNamespaceURI(prefix); also
scans the attributes for xmlns declarations, the act of adding the
namespace moves the prefix,namespace declaration into the hash table,
so speeding up later operations?
No. Try taking it out and watch which unit tests break. It's necessary for correct operation.
--
Elliotte Rusty Harold elharo AT metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/
- Re: [XOM-interest] why set the namespace again?, Elliotte Harold, 10/31/2006
Archive powered by MHonArc 2.6.24.