[ 
http://issues.apache.org/jira/browse/WSCOMMONS-94?page=comments#action_12434112 
] 
            
Eran Chinthaka commented on WSCOMMONS-94:
-----------------------------------------

One clarification. 

What should be the signature and the behaviour of this method would be. If its 
like
public void removeDeclaredNamespace(uri,prefix), then which parameter should 
not be null (hope we can not allow one to pass null for both). 
I would say prefix is a mandatory as there can be same namespace uris attached 
to the two or more prefixes, but the other way round has no meaning. 
So my suggestion is this :

/**
 * @param uri  the uri of the namespace to be removed. This can be null.
 * @param prefix the prefix associated with the namespace. This can not be null
 */
public void removeDeclaredNamespace(uri,prefix)

> Namespace declaration cannot be removed from OMElement
> ------------------------------------------------------
>
>                 Key: WSCOMMONS-94
>                 URL: http://issues.apache.org/jira/browse/WSCOMMONS-94
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>         Environment: Windows
>            Reporter: Toshiro Takase
>            Priority: Critical
>
> Once an useless namespace declaration is declared to an OMElement, the 
> namespace declaration cannot be removed forever.
> In DOM, we can remove namespace declarations by using 
> Element.removeAttribute() .
> But, in AXIOM, we cannot remove namespace declarations by 
> OMElement.removeAttribute() .
> Maybe, we need OMElement.removeDeclaredNamespace() ?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
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