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: Tatu Saloranta <cowtowncoder AT yahoo.com>
  • To: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] getElementById (not again.... I know, but..)
  • Date: Sat, 7 Oct 2006 09:56:17 -0700 (PDT)

--- Elliotte Harold <elharo AT metalab.unc.edu> wrote:

> Jan Venema wrote:
> > No getElementById?
> >
> > I thougth ID was special in XML.
...
> IDs are very tricky in XML. Not everything that
> looks like an ID is. I
> might be one day convinced to add this, but right
> now I think it's best
> just to use XPath.

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.

-+ Tatu +-



__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com




Archive powered by MHonArc 2.6.24.

Top of Page