You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2006/02/26 21:19:24 UTC
svn commit: r381159 - in
/xerces/java/trunk/src/org/apache/xerces/jaxp/validation:
DOMResultAugmentor.java DOMResultBuilder.java
Author: mrglavas
Date: Sun Feb 26 12:19:21 2006
New Revision: 381159
URL: http://svn.apache.org/viewcvs?rev=381159&view=rev
Log:
The non-namespace aware setAttributeNode() was being called when building
the DOM result which could cause attributes to be overwritten if they have
the same nodeName. To fix this problem we now call setAttributeNodeNS().
Modified:
xerces/java/trunk/src/org/apache/xerces/jaxp/validation/DOMResultAugmentor.java
xerces/java/trunk/src/org/apache/xerces/jaxp/validation/DOMResultBuilder.java
Modified: xerces/java/trunk/src/org/apache/xerces/jaxp/validation/DOMResultAugmentor.java
URL: http://svn.apache.org/viewcvs/xerces/java/trunk/src/org/apache/xerces/jaxp/validation/DOMResultAugmentor.java?rev=381159&r1=381158&r2=381159&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/jaxp/validation/DOMResultAugmentor.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/jaxp/validation/DOMResultAugmentor.java Sun Feb 26 12:19:21 2006
@@ -1,5 +1,5 @@
/*
- * Copyright 2005 The Apache Software Foundation.
+ * Copyright 2005,2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -166,7 +166,7 @@
}
}
attr.setSpecified(false);
- currentElement.setAttributeNode(attr);
+ currentElement.setAttributeNodeNS(attr);
}
}
}
Modified: xerces/java/trunk/src/org/apache/xerces/jaxp/validation/DOMResultBuilder.java
URL: http://svn.apache.org/viewcvs/xerces/java/trunk/src/org/apache/xerces/jaxp/validation/DOMResultBuilder.java?rev=381159&r1=381158&r2=381159&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/jaxp/validation/DOMResultBuilder.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/jaxp/validation/DOMResultBuilder.java Sun Feb 26 12:19:21 2006
@@ -1,5 +1,5 @@
/*
- * Copyright 2005 The Apache Software Foundation.
+ * Copyright 2005,2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -261,7 +261,7 @@
}
}
attr.setSpecified(attributes.isSpecified(i));
- elem.setAttributeNode(attr);
+ elem.setAttributeNodeNS(attr);
}
}
append(elem);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org