Suresh Attanayake edited a comment on Improvement AXIOM-423
Hi,
Here is the reason as I think for this NPE issue, please help me with this. We have an element as follows,

 <Element xmlns:ns="http://apache/axiom/dom/ns"/>

When the ele.setAttributeNS( ); is called, the xmlns:ns attribute is created setting the Document object as the Owner, Is it the correct behavior ? Shouldn't the Element object be the owner ?

Inside the method attr.lookupNamespaceURI( ) , AXIOM returns NULL as the parent of this attribute.[This is because the Document object has set as the owner, but not the Element object]. Can a document be the owner of an attribute instead an Element ?

Thanks,
-Suresh
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

Reply via email to