--- jayachandra <[EMAIL PROTECTED]> wrote: > element.detach() removes element info item also > along with all its > children, isn't it?
Yes, it simply detaches the element from the tree. However, you could detach the child you want. This would keep the parent intact;-) OM is based on the DOM concept where everything in the tree is a Node. So an Element and its content are two different entities and this are as separate nodes. Recently certain methods have been added to OM for programmer convenience that blur this identity. However, I�m not in favour of those changes. --Dasarath > > Jayachandra > > On Wed, 23 Mar 2005 10:02:18 +0600, Eran Chinthaka > <[EMAIL PROTECTED]> 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 > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
