Do not treat hop:parent element as property when reading XML-encoded HopObject.

Fixes bug 281: http://helma.org/bugs/show_bug.cgi?id=281
This commit is contained in:
hns 2004-02-05 10:37:23 +00:00
parent b9646ab20d
commit 229236b25c

View file

@ -204,9 +204,14 @@ public final class XmlReader extends DefaultHandler implements XmlConstants {
propName = qName; propName = qName;
} }
if ("hop:parent".equals(qName)) {
// FIXME: we ought to set parent here, but we're
// dealing with INodes, which don't have a setParent().
} else {
currentNode.setNode(propName, n); currentNode.setNode(propName, n);
} }
} }
}
} else { } else {
// It's a primitive property. Remember the property name and type // It's a primitive property. Remember the property name and type
// so we can properly parse/interpret the character data when we // so we can properly parse/interpret the character data when we