[ 
https://issues.apache.org/jira/browse/AXIS2C-498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12463529
 ] 

Dumindu Pallewela commented on AXIS2C-498:
------------------------------------------

This behaviour is true not only for empty default namespaces, but also for any 
other default namespace defined, which is hidden by another default namespace 
in between.

Eg:

<a xmlns="urn:def1">
    <b xmlns="urn:def2">
        <c xmlns="urn:def1">
        </c>
    </b>
</a>

axiom om structure is equivalent to:

<a xmlns="urn:def1">
    <b xmlns="urn:def2">
        <c>
        </c>
    </b>
</a>


> Axiom OM structure built is inconsistent with the original xml document in 
> certain cases where the default namespace is set to the empty namespace
> --------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2C-498
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-498
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: xml/om
>    Affects Versions: Current (Nightly)
>            Reporter: Dumindu Pallewela
>
> When the default namespace is is set to the empty namespace as follows (in 
> element "c") it is ignored while building the OM structure.
> Therefore in the following case the built OM structure says element "c"'s 
> namespace is the same as element "b"'s namespace.
> <a xmlns="">
>     <b xmlns="urn:def">
>         <c xmlns="">
>         </c>
>     </b>
> </a>
> I.e., the built OM structure represents the following, which is different to 
> the original XML document:
> <a>
>     <b xmlns="urn:def">
>         <c>
>         </c>
>     </b>
> </a>
> However, it should be noted that in the following case where we do not 
> specifically mention that element "a"'s namespace as the empty namespace; the 
> built OM structure properly represents element "c" as an unqualified element 
> with the empty namespace.
> <a>
>     <b xmlns="urn:def">
>         <c xmlns="">
>         </c>
>     </b>
> </a>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://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