ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r357116 - /ant/core/trunk/src/main/org/apache/tools/ant/util/XMLFragment.java
Date Fri, 16 Dec 2005 04:21:15 GMT
Author: bodewig
Date: Thu Dec 15 20:21:12 2005
New Revision: 357116

URL: http://svn.apache.org/viewcvs?rev=357116&view=rev
Log:
make it consistent with the nested elements

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/util/XMLFragment.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/util/XMLFragment.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/util/XMLFragment.java?rev=357116&r1=357115&r2=357116&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/util/XMLFragment.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/util/XMLFragment.java Thu Dec 15 20:21:12
2005
@@ -75,7 +75,12 @@
      * @return an object that the element is applied to
      */
     public Object createDynamicElement(String uri, String name, String qName) {
-        Element e = doc.createElementNS(uri, qName);
+        Element e = null;
+	if (uri.equals("")) {
+	    e = doc.createElement(name);
+	} else {
+	    e = doc.createElementNS(uri, qName);
+	}
         fragment.appendChild(e);
         return new Child(e);
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message