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: Jan Venema <jan.venema AT gmail.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 08:46:50 -0400

Jan Venema wrote:
No getElementById?

I thougth ID was special in XML.
XOM tries to be correct, so why not tread ID as a first-class citizen.
And since XOM API is targetted at non-experts (from the tutorial section at
xom.nu) I think it is an omission not to include it.


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.

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