elena 2002/12/11 06:19:14
Modified: java/src/org/apache/xerces/dom ElementImpl.java
Log:
For existing attribute setAttributeNS changes value and prefix, make sure
that prefix is not null before constructing the qName.
Revision Changes Path
1.54 +3 -3 xml-xerces/java/src/org/apache/xerces/dom/ElementImpl.java
Index: ElementImpl.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/dom/ElementImpl.java,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -r1.53 -r1.54
--- ElementImpl.java 8 Nov 2002 21:28:14 -0000 1.53
+++ ElementImpl.java 11 Dec 2002 14:19:13 -0000 1.54
@@ -662,8 +662,8 @@
attributes.setNamedItemNS(newAttr);
}
else {
- // change prefix and value
- ((AttrNSImpl)newAttr).name= prefix+":"+localName;
+ // change prefix and value
+ ((AttrNSImpl)newAttr).name=
(prefix!=null)?(prefix+":"+localName):localName;
newAttr.setNodeValue(value);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]