Hi, In the case of using axiom_element_get_children_with_qname(...) method, once the initial axiom_node is freed (say sec-policy is freed in above example) then the node that we extracted through the iterator (which is to be used for WS-Trust ) will be also freed.
What I really want to acheive is this. - Initially I got an axiom_node which contains <sp:IssuedToken> ...... and I want to get a new copy (separate memory allocation) of a content of that node (say things with the <RequestSecurityTokenTemplate> qname ). - And also once the main node is freed, the extracted part should not be freed. - I wonder whether Jimmy's solution would work with axiom. Thanks, Kasun.
