You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "sumedha rubasinghe (JIRA)" <ji...@apache.org> on 2007/01/08 12:15:27 UTC
[jira] Updated: (WSCOMMONS-147) [Axis2] AttrImpl -> getName()
returns wrong name
[ https://issues.apache.org/jira/browse/WSCOMMONS-147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
sumedha rubasinghe updated WSCOMMONS-147:
-----------------------------------------
Attachment: WSCOMMONS-147.patch
> [Axis2] AttrImpl -> getName() returns wrong name
> ------------------------------------------------
>
> Key: WSCOMMONS-147
> URL: https://issues.apache.org/jira/browse/WSCOMMONS-147
> Project: WS-Commons
> Issue Type: Bug
> Components: AXIOM
> Environment: any
> Reporter: sumedha rubasinghe
> Attachments: WSCOMMONS-147.patch
>
>
> Value returned from org.apache.axiom.om.impl.dom.AttrImpl -> getName() is incorrect, when an attribute has a namespace prefix other than "xmlns".
> class AttrImpl{
> .........
> public String getName() {
> return (this.namespace == null) ? this.attrName
> : (OMConstants.XMLNS_NS_PREFIX.equals(this.attrName) ? this.attrName : OMConstants.XMLNS_NS_PREFIX + ":" + this.attrName);
> }
> ........
> }
> As you can see in the above code, the returned value will have default namespace prefix set, even if it has some other prefix.
--
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: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org