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:
parent
b9646ab20d
commit
229236b25c
1 changed files with 7 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue