Author: azeez
Date: Tue Jan 9 02:32:08 2007
New Revision: 494360
URL: http://svn.apache.org/viewvc?view=rev&rev=494360
Log:
applying patch for WSCOMMONS-147 sent by sumedha
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/AttrImpl.java
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/AttrImpl.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/AttrImpl.java?view=diff&rev=494360&r1=494359&r2=494360
==============================================================================
---
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/AttrImpl.java
(original)
+++
webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/AttrImpl.java
Tue Jan 9 02:32:08 2007
@@ -148,8 +148,18 @@
// /org.w3c.dom.Attr methods
// /
public String getName() {
- return (this.namespace == null) ? this.attrName
- : (OMConstants.XMLNS_NS_PREFIX.equals(this.attrName) ?
this.attrName : OMConstants.XMLNS_NS_PREFIX + ":" + this.attrName);
+ if(this.namespace != null)
+ {
+ if((OMConstants.XMLNS_NS_PREFIX.equals(this.attrName))){
+ return this.attrName;
+ }else
if(OMConstants.XMLNS_NS_URI.equals(this.namespace.getNamespaceURI())){
+ return OMConstants.XMLNS_NS_PREFIX + ":" +
this.attrName;
+ }else{
+ return this.namespace.getPrefix()+":"+this.attrName;
+ }
+ }else{
+ return this.attrName;
+ }
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]