Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] getElementById (not again.... I know, but..)

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: Tatu Saloranta <cowtowncoder AT yahoo.com>
  • Cc: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] getElementById (not again.... I know, but..)
  • Date: Sat, 07 Oct 2006 12:59:53 -0400

Tatu Saloranta wrote:

Not that I have immediate need for this myself, but I
am curious as to what would be the complex part with
this: is it just that XOM doesn't currently build the
hash from id (DTD/schema/RNG defined type ID for an
attribute, or Xml:id implied type), and thus this
might result in a linear search?
Detecting id attributes should be easy enough,
provided that the low-level parser provides type info.


That's the rub. It doesn't. There are quite a few different ways to define IDs, some used in the same documents. For instance is an id attribute in an HTML document without a DTD an ID or not?

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