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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]