[Axis2] AttrImpl -> getName() returns wrong name
------------------------------------------------
Key: AXIS2-1952
URL: https://issues.apache.org/jira/browse/AXIS2-1952
Project: Apache Axis 2.0 (Axis2)
Issue Type: Bug
Components: adb
Environment: any
Reporter: sumedha rubasinghe
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]