[jdom-interest] Reading the xml:base attribute

Elliotte Harold elharo at metalab.unc.edu
Thu Jan 6 12:32:07 PST 2005


Jason Hunter wrote:


> In XOM I see Element(name, uri) but no way for the user to supply a 
> prefix?  Did you follow through on your earlier plan to just assume 
> people aren't attached to their prefixes?

XOM does not separate qualified names from local names. In XOM you can do

Element e = new Element("a:name", "http://www.example.com/");

and

Element e = new Element("name", "http://www.example.com/");

XOM's smart enough to recognize the prefix boundary. :-)


-- 
Elliotte Rusty Harold  elharo at metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim


More information about the jdom-interest mailing list