You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Rajesh Manickadas <rm...@Selectica.com> on 2003/09/25 12:53:34 UTC
FW: Help Needed for Ignoring End of Line Elements in DOM of SOAP
Element
sending it again as plain-text.
-----Original Message-----
From: Rajesh Manickadas
Sent: Thursday, September 25, 2003 4:07 PM
To: axis-user@ws.apache.org
Subject: Help Needed for Ignoring End of Line Elements in DOM of SOAPElem
ent
Hi,
I have a requirement to convert the SOAPBodyElement to
a JDOM Element to give it to another system. I am using
the getAsDOM() to get the DOM, then give this DOM to the
JDOM DOMBuilder. What happens is END OF LINE's in the SOAP
request are found as Elements in the JDOM Document, Is there
a way to ignore them anywhere between these conversions
without parsing the Document.
code:
Element domElement = ((SOAPBodyElement)bodies.get(0)).getAsDOM();
DOMBuilder jdombuilder = new DOMBuilder();
org.jdom.Element jdomElement = jdombuilder.build(domElement);
jdomElement has the end of line's as Elements which I want
to Ignore without parsing and removing it.
Thanks
Rajesh
Re: FW: Help Needed for Ignoring End of Line Elements in DOM of
SOAP Element
Posted by Stephen Gordon <st...@student.usyd.edu.au>.
I really don't know if this is an axis question.
I think maybe some XML or JDOM user group would be able to handler this
one better.
just my $0.02
stephen
Rajesh Manickadas wrote:
> sending it again as plain-text.
>
> -----Original Message-----
> From: Rajesh Manickadas
> Sent: Thursday, September 25, 2003 4:07 PM
> To: axis-user@ws.apache.org
> Subject: Help Needed for Ignoring End of Line Elements in DOM of
> SOAPElem ent
>
>
> Hi,
>
> I have a requirement to convert the SOAPBodyElement to
> a JDOM Element to give it to another system. I am using
> the getAsDOM() to get the DOM, then give this DOM to the
> JDOM DOMBuilder. What happens is END OF LINE's in the SOAP
> request are found as Elements in the JDOM Document, Is there
> a way to ignore them anywhere between these conversions
> without parsing the Document.
>
> code:
> Element domElement = ((SOAPBodyElement)bodies.get(0)).getAsDOM();
> DOMBuilder jdombuilder = new DOMBuilder();
> org.jdom.Element jdomElement = jdombuilder.build(domElement);
>
> jdomElement has the end of line's as Elements which I want
> to Ignore without parsing and removing it.
>
> Thanks
> Rajesh
>