JDOM and JAXM

I have been evaluating JDOM and came to the conclusion that we cannot use it because it will not work well with JAXM. Anybody know anything to the contrary?

JAXM returns w3c.org objects and JDOM does not let you create a JDOM object from DOM, very easily if at all. I'd love to hear that I'm wrong.

Anyone?

Brunky

[348 byte] By [Brunky] at [2007-9-26 4:15:01]
# 1

You're wrong - at least technically.

The build method of a DOMBuilder instance allows you to pass an org.w3c.dom.Document as an input argument to create a JDOM doc (when I tried it with jdom-b7 I encountered a run-time error, but after rebuilding jdom this exception went away).

DOMBuilder builder=new DOMBuilder();

org.jdom.Document JDOMdoc=builder.build(DOMdoc);

Generating an org.w3c.dom.Document is simple, too:

DOMOutputter domOutputter=new DOMOutputter();

org.w3c.dom.Document domDoc=domOutputter.output(JDOMdoc);

So, memory usage and efficiency questions aside, technically this is doable.

Good luck.

lk555 at 2007-6-29 13:23:18 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...