[jdom-interest] JDOM and SOAP

steven.gould at cgiusa.com steven.gould at cgiusa.com
Tue Mar 20 02:12:15 PST 2001


Sorry, what I said was correct but the code was wrong. I've got too used to using
XMLOutputter!  :-)  Here's the corrected code:

  DOMOutputter outputter = new DOMOutputter();
  outputter.output( jdomDocument );

Steve

---

steven.gould at cgiusa.com wrote:

> To convert a JDOM Document to a DOM Document take a look at the
> org.jdom.output.DOMOutputter class documentation. Basically you'll need to do
> something like:
>
>   XMLOutputter outputter = new XMLOutputter();
>   outputter.output( jdomDocument );
>
> Steve
>
> ---
>
> nielsenk at digitalesp.com wrote:
>
> > 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
> >
> > _______________________________________________
> > To control your jdom-interest membership:
> > http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com



More information about the jdom-interest mailing list