[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/");


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!

More information about the jdom-interest mailing list