[ 
https://issues.apache.org/jira/browse/WSCOMMONS-278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12695783#action_12695783
 ] 

Andreas Veithen commented on WSCOMMONS-278:
-------------------------------------------

The DOM contract requires the getNamespaceURI to return null if the node 
doesn't have a namespace URI. Since ElementImpl implements getNamespaceURI 
according to DOM, it would not satisfy the definition of 
OMElement#getNamespaceURI you proposed in your first patch (which required 
getNamespaceURI to return "null" in that case). In the new version of the 
patch, the definition of OMElement#getNamespaceURI is compatible with DOM's 
Node#getNamespaceURI and that allows ElementImpl to adhere to both DOM and 
Axiom.

> Need OMElement.getNamespaceURI() convenience method
> ---------------------------------------------------
>
>                 Key: WSCOMMONS-278
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-278
>             Project: WS-Commons
>          Issue Type: Improvement
>          Components: AXIOM
>            Reporter: Glen Daniels
>            Assignee: Glen Daniels
>             Fix For: Axiom 1.3
>
>         Attachments: patch.txt, patch2.txt
>
>
> It is extremely *in*convenient to constantly have to type 
> element.getNamespace().getNamespaceURI() in order to simply get the String 
> namespace from an OMElement. :)  We should add a convenience method 
> OMElement.getNamespaceURI().

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to