You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by "Andreas Veithen (JIRA)" <ji...@apache.org> on 2011/07/23 09:23:09 UTC

[jira] [Resolved] (AXIOM-75) Namespace declaration cannot be removed from OMElement

     [ https://issues.apache.org/jira/browse/AXIOM-75?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen resolved AXIOM-75.
----------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 1.3)
                   1.2.13
         Assignee: Andreas Veithen

This can actually be done by using Iterator#remove() on the iterator returned by getAllDeclaredNamespaces(). This has always worked, but is now "officially" supported (i.e. it is explicitly mentioned in the Javadoc) and I've added a test case for this.

> Namespace declaration cannot be removed from OMElement
> ------------------------------------------------------
>
>                 Key: AXIOM-75
>                 URL: https://issues.apache.org/jira/browse/AXIOM-75
>             Project: Axiom
>          Issue Type: Bug
>         Environment: Windows
>            Reporter: Toshiro Takase
>            Assignee: Andreas Veithen
>            Priority: Minor
>             Fix For: 1.2.13
>
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org