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

@ -203,8 +203,13 @@ public final class XmlReader extends DefaultHandler implements XmlConstants {
if (propName == null) { if (propName == null) {
propName = qName; propName = qName;
} }
currentNode.setNode(propName, n); 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);
}
} }
} }
} else { } else {