You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2003/12/01 17:42:47 UTC
cvs commit: ws-axis/java/src/org/apache/axis/utils DOM2Writer.java
dims 2003/12/01 08:42:47
Modified: java/src/org/apache/axis/utils DOM2Writer.java
Log:
Fix for Bug 19001 - DOM2Writer prints xmlns:="" when Element ns prefix is empty string
from andrewv@iastate.edu (Andrew Vardeman)
Revision Changes Path
1.19 +3 -1 ws-axis/java/src/org/apache/axis/utils/DOM2Writer.java
Index: DOM2Writer.java
===================================================================
RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/utils/DOM2Writer.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- DOM2Writer.java 1 Dec 2003 13:46:15 -0000 1.18
+++ DOM2Writer.java 1 Dec 2003 16:42:47 -0000 1.19
@@ -203,7 +203,9 @@
String attrPrefix = attr.getPrefix();
String attrNamespaceURI = attr.getNamespaceURI();
- if (attrPrefix != null && attrNamespaceURI != null)
+ if (attrPrefix != null &&
+ attrNamespaceURI != null &&
+ attrPrefix.length() > 0)
{
boolean prefixIsDeclared = false;