Hi Alex, Use omElement.detach() method..
Thanks, ~Isuru On Mon, Nov 9, 2009 at 2:33 PM, Alexander Rosemann < alexander.rosem...@gmail.com> wrote: > Hi, > > I was wondering what's the best way to alter a soap body within a handler. > I have the soap body (SOAPBody body = msgCtx.getEnvelope().getBody();) and > can navigate though it's elements but don't know how to alter (i.e. remove) > a certain element. > > Since I haven't found anything on the web, I was wondering whether somebody > tried to achieve the same and could point me into the right direction. > > I'm using Axis2 1.4.1. > > Thanks in advance, > Alex > > -- Senior Software Engineer, WSO2 Inc. http://wso2.org/ Blog : http://isurues.wordpress.com/