nandika jayawardana wrote:
Hi all,
In current om implementation, om nodes can be created programmatically
as well as using the builder .When om elements are created
programmatically , many om_elements will be pointing to the same
namespace struct instance if it was given as the namespace in
creating elements.
Now when axis2_om_node_free() to free the om tree , a segfault occur
if above situation has happened in the code.
Therefor checking mechanism is required to make sure that above
problem does not occur .
any comments .....
Well I think in adding a child node to a parent, we got to check if a
namespace declared in child is already declared in the parent (and up
the hierarcy).
As of now add_child does not do such a check.
Samisa...
regards
nandika