[jdom-interest] DOMBuilder with customized adapter

Jason Hunter jhunter at collab.net
Fri Feb 16 10:04:29 PST 2001

> > Why aren't you using SAXBuilder?
> Because with the frequent changes to specific element and the lack of
> support of XPath to retrive element DOM just workes bether.
> (And old habbit I imagin, I have almost never used SAX... I feel that DOM
> gives me more control over the XML...)...

You don't touch SAX if you use SAXBuilder.

> Is there an easy way to perform validation of single elements with SAX ? 
> I would like it to work the way that when I create a Element from a Document
> it already then tells me if the element is valid to create. 

True runtime validation is impossible.

> > BTW, we use reflection so we can compile JDOM without having to have
> > *every supported parser* available in the classpath at compile time.
> That could easily be solved with the setup of ant.

Not true.  With ant you can skip building source, but then you can't run


More information about the jdom-interest mailing list