[jdom-interest] Re: JDOM and SOAP

Joseph Bowbeer jozart at csi.com
Mon Mar 19 21:32:05 PST 2001

> Is there anyway to get a DOM document from a JDOM one?

You can use XMLOutputter to convert JDOM to XML and then use your favorite
DOM parser to convert the XML to DOM.

By the way, why not marshall the DOM (or JDOM) object using its natural XML
encoding (XMLOutputter).

----- original message -----
From: nielsenk at digitalesp.com nielsenk at digitalesp.com
Date: Mon, 19 Mar 2001 21:02:18 GMT

Using Literal Encoding in Apache SOAP, I can pass a parameter of type
org.w3c.dom.Document and have it marshalled correctly. Now I would prefer
to use JDOM, is there anyway to get a DOM document from a JDOM one? I don't
want to be forced to write my own Serializer for a JDOM document. I suppose
I could also output the JDOM structure and send it as a SOAP Encoded

This question might be better directed to the SOAP users group, as if a
serializer doesn't already exist someone is probably working on it.
Although with the proliferation of SOAP based services, it would be nice if
one was provided for users of JDOM.

It would certainly make my adoption of it a no brainer.

Keith Nielsen

More information about the jdom-interest mailing list