[jdom-interest] Reading the xml:base attribute

Bradley S. Huffman hip at a.cs.okstate.edu
Thu Jan 6 16:17:06 PST 2005


"Michael Kay" writes:

> > When all you want to do is search nodes, this is probably 
> > true. But I only
> > build JDOM nodes when I want to manipulate them and adding 
> > elements or 
> > attributes requires a instance of Namespace which I usually 
> > pre-allocate with
> > the prefix I prefer. So this situation does bother me. I 
> > already have a
> > instance of Namespace I can use.
> 
> I only search JDOM documents that someone else has built, so I don't have
> any convenient Namespace objects to hand.

Convince Jason getAttribute(name, uri) is a good idea :-) As I said I'm
so use to doing it another way that I've never really given it much thought.
Hmmm, looks like a getAttribute with that signature was in b4, then was
removed in b5 (damn, how long ago was that!).

Brad


More information about the jdom-interest mailing list