You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by vg...@apache.org on 2004/02/24 16:32:27 UTC
cvs commit: xml-xindice/java/src/org/apache/xindice/xml/dom DocumentImpl.java
vgritsenko 2004/02/24 07:32:27
Modified: . status.xml
java/src/org/apache/xindice/xml/dom DocumentImpl.java
Log:
Fixed bug with DocumentImpl.importNode when importing attribute nodes.
Revision Changes Path
1.36 +4 -1 xml-xindice/status.xml
Index: status.xml
===================================================================
RCS file: /home/cvs/xml-xindice/status.xml,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- status.xml 23 Feb 2004 03:27:07 -0000 1.35
+++ status.xml 24 Feb 2004 15:32:27 -0000 1.36
@@ -68,7 +68,10 @@
</todo>
<changes>
- <release version="1.1b4-dev" date="February 11 2004">
+ <release version="1.1b4-dev" date="February 24 2004">
+ <action dev="VG" type="fix">
+ Fixed bug with DocumentImpl.importNode when importing attribute nodes.
+ </action>
<action dev="VG" type="remove">
Removing Eclipse UI plugin due to lack of support.
</action>
1.16 +4 -7 xml-xindice/java/src/org/apache/xindice/xml/dom/DocumentImpl.java
Index: DocumentImpl.java
===================================================================
RCS file: /home/cvs/xml-xindice/java/src/org/apache/xindice/xml/dom/DocumentImpl.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- DocumentImpl.java 8 Feb 2004 03:11:56 -0000 1.15
+++ DocumentImpl.java 24 Feb 2004 15:32:27 -0000 1.16
@@ -358,7 +358,7 @@
public Node importNode(Node importedNode, boolean deep) {
return importNode(importedNode, deep, true);
}
-
+
private Node importNode(Node importedNode, boolean deep, boolean importNamespaces) {
try {
// If we're a Xindice DOM Node and share the same symbol table,
@@ -381,10 +381,7 @@
Node result = null;
switch (importedNode.getNodeType()) {
case Node.ATTRIBUTE_NODE:
- Attr sattr = (Attr) importedNode;
- Attr attr = createAttribute(sattr.getName());
- attr.setValue(sattr.getValue());
- result = attr;
+ result = createAttribute(importedNode.getNodeName());
break;
case Node.CDATA_SECTION_NODE: