axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/utils DOM2Writer.java
Date Mon, 01 Dec 2003 16:42:47 GMT
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;
   
  
  
  

Mime
View raw message