Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] why set the namespace again?

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • 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, 06 Jun 2006 10:15:27 -0400

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?


I don't have time to figure out exactly why that line is necessary this minute, but I do note that when I commented it out about 50 different tests broke, so I suspect it's doing something. :-)

--
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/




Archive powered by MHonArc 2.6.24.

Top of Page