ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (Created) (JIRA)" <>
Subject [jira] [Created] (AXIOM-398) Return value of OMNamedInformationItem#getNamespace() should be normalized
Date Sun, 13 Nov 2011 09:05:52 GMT
Return value of OMNamedInformationItem#getNamespace() should be normalized

                 Key: AXIOM-398
             Project: Axiom
          Issue Type: Bug
          Components: API
    Affects Versions: 1.2.12
            Reporter: Andreas Veithen
            Priority: Minor

For elements and attributes without namespace, getNamespace() may return two different values:
null or an OMNamespace instances that has both prefix and namespaceURI properties set to the
empty string. The value that is actually returned in this case depends in subtle ways on how
the information item was created. This can be illustrated by the following code snippet:

OMElement element1 = AXIOMUtil.stringToOM("<root/>");
OMElement element2 = AXIOMUtil.stringToOM("<root xmlns=''/>");

The output is:


One can see that although the two elements are equivalent, the return value of getNamespace()
is different.

The return value of getNamespace() should be normalized such that it is always the same (i.e.
null) for information items without namespace.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message