Yes, I think you're correct. I made the incorrect assumption that
detaching a node detached the node entirely from the original dom tree,
effectively making it independent. In reality I guess what I want is to
be able to clone the node.

Basically when I receive the Soap message you obviously get the whole
body, what I want to do is after parsing the majority of it into
relevant data, keep part of it as the original XML -- the metadata.
Keeping the whole document around seems incredibly inefficient memory
wise, so I assumed that disconnecting the node would be suitable, but
when I do this, when I delete the parent some namespace information is
lost.

Unfortunately axiom doesn't have the clone method that DOM specifies
either, so I can't seem to find any solution for this problem - any
ideas?

Thanks,
Jamie

> -----Original Message-----
> From: Dumindu Pallewela [mailto:[EMAIL PROTECTED]
> Sent: 22 August 2007 20:11
> To: Apache AXIS C Developers List
> Subject: Re: (AXIS2C-675) Detach node does not handle namespaces
> 
> Is this really a bug? I don't think that we need to handle this at
axiom
> level. May be I'm missing something here.
> 
> Jamie Lyon (JIRA) wrote:
> > Detach node does not handle namespaces
> > --------------------------------------
> >
> >                  Key: AXIS2C-675
> >                  URL:
https://issues.apache.org/jira/browse/AXIS2C-675
> >              Project: Axis2-C
> >           Issue Type: Bug
> >           Components: xml/om
> >             Reporter: Jamie Lyon
> >
> >
> > When detaching a node from a parent, if the current node or any of
it's
> children have any namespaces declared in it's parent or above, when
the
> node is detached, and the parent freed, any namespace references are
lost.
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to