[jdom-interest] Re: JDOM and SOAP

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


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

Better yet: org.jdom.output.DOMOutputter (!)

----- Original Message ----- 
From: "Joseph Bowbeer" <jozart at csi.com>
To: <jdom-interest at jdom.org>
Sent: Monday, March 19, 2001 9:32 PM
Subject: Re: JDOM and SOAP


> 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
message.

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
digitalESP





More information about the jdom-interest mailing list