[jboss-svn-commits] JBoss Common SVN: r2016 - common-old/branches/Branch_1_0/src/main/org/jboss/util/xml
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Sep 4 19:30:26 EDT 2006
Author: thomas.diesler at jboss.com
Date: 2006-09-04 19:30:25 -0400 (Mon, 04 Sep 2006)
New Revision: 2016
Modified:
common-old/branches/Branch_1_0/src/main/org/jboss/util/xml/DOMUtils.java
Log:
fix copyAttributes
Modified: common-old/branches/Branch_1_0/src/main/org/jboss/util/xml/DOMUtils.java
===================================================================
--- common-old/branches/Branch_1_0/src/main/org/jboss/util/xml/DOMUtils.java 2006-09-04 23:28:42 UTC (rev 2015)
+++ common-old/branches/Branch_1_0/src/main/org/jboss/util/xml/DOMUtils.java 2006-09-04 23:30:25 UTC (rev 2016)
@@ -343,8 +343,14 @@
// Prevent DOMException: NAMESPACE_ERR: An attempt is made to create or
// change an object in a way which is incorrect with regard to namespaces.
- if (("xmlns".equals(qname) && "".equals(value)) == false)
+ if (uri == null && qname.startsWith("xmlns"))
+ {
+ log.trace("Ignore attribute: [uri=" + uri + ",qname=" + qname + ",value=" + value + "]");
+ }
+ else
+ {
destElement.setAttributeNS(uri, qname, value);
+ }
}
}
More information about the jboss-svn-commits
mailing list