You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by jayachandra <ja...@gmail.com> on 2005/03/22 14:18:31 UTC

Doubt in OM

Hi Axis2 developers,

Currently is there a way in which one can erase the contents of an
OMElement. Just the contents and not the whole info item. This is a
typical requirement for situations like roll back in case, some
malformation happens.

Jayachandra

RE: [Axis2]Fwd: Doubt in OM

Posted by Eran Chinthaka <ch...@opensource.lk>.
Correct !!!

> -----Original Message-----
> From: jayachandra [mailto:jayachandra@gmail.com]
> Sent: Wednesday, March 23, 2005 10:53 AM
> To: axis-dev@ws.apache.org; chinthaka@opensource.lk
> Subject: Re: [Axis2]Fwd: Doubt in OM
> 
> element.detach()  removes element info item also along with all its
> children, isn't it?
> 
> Jayachandra
> 
> On Wed, 23 Mar 2005 10:02:18 +0600, Eran Chinthaka
> <ch...@opensource.lk> wrote:
> > Hi Jayachandra,
> >
> > If I got you correct, you want to delete text children of an OMElement,
> not
> > all the children right ??
> >
> > Child Text is considered as Child elements in OM. So you have to follow
> the
> > same way. But if one requires a method remove only test, its just a
> metter
> > of detaching children which are of type OMText of the element.
> >
> > If what you meant was to remove all the children of an OMElement, the
> > element.detach() method will do.
> >
> > Regards,
> > -- Chinthaka
> >
> > >
> > >
> > > Hi Axis2 developers,
> > >
> > > Currently is there a way in which one can erase the contents of an
> > > OMElement. Just the contents and not the whole info item. This is a
> > > typical requirement for situations like roll back in case, some
> > > malformation happens.
> > >
> > > Jayachandra
> >
> >
> 
> 
> --
> -- Jaya




Re: [Axis2]Fwd: Doubt in OM

Posted by jayachandra <ja...@gmail.com>.
element.detach()  removes element info item also along with all its
children, isn't it?

Jayachandra

On Wed, 23 Mar 2005 10:02:18 +0600, Eran Chinthaka
<ch...@opensource.lk> wrote:
> Hi Jayachandra,
> 
> If I got you correct, you want to delete text children of an OMElement, not
> all the children right ??
> 
> Child Text is considered as Child elements in OM. So you have to follow the
> same way. But if one requires a method remove only test, its just a metter
> of detaching children which are of type OMText of the element.
> 
> If what you meant was to remove all the children of an OMElement, the
> element.detach() method will do.
> 
> Regards,
> -- Chinthaka
> 
> >
> >
> > Hi Axis2 developers,
> >
> > Currently is there a way in which one can erase the contents of an
> > OMElement. Just the contents and not the whole info item. This is a
> > typical requirement for situations like roll back in case, some
> > malformation happens.
> >
> > Jayachandra
> 
> 


-- 
-- Jaya

RE: [Axis2]Fwd: Doubt in OM

Posted by Eran Chinthaka <ch...@opensource.lk>.
Hi Jayachandra,

If I got you correct, you want to delete text children of an OMElement, not
all the children right ??

Child Text is considered as Child elements in OM. So you have to follow the
same way. But if one requires a method remove only test, its just a metter
of detaching children which are of type OMText of the element. 

If what you meant was to remove all the children of an OMElement, the
element.detach() method will do.


Regards,
-- Chinthaka

> 
> 
> Hi Axis2 developers,
> 
> Currently is there a way in which one can erase the contents of an
> OMElement. Just the contents and not the whole info item. This is a
> typical requirement for situations like roll back in case, some
> malformation happens.
> 
> Jayachandra




[Axis2]Fwd: Doubt in OM

Posted by Srinath Perera <he...@gmail.com>.
fowarding with Axis2 prefix


---------- Forwarded message ----------
From: jayachandra <ja...@gmail.com>
Date: Tue, 22 Mar 2005 18:48:31 +0530
Subject: Doubt in OM
To: axis-dev@ws.apache.org


Hi Axis2 developers,

Currently is there a way in which one can erase the contents of an
OMElement. Just the contents and not the whole info item. This is a
typical requirement for situations like roll back in case, some
malformation happens.

Jayachandra