if(currentPath.getLast() instanceof Content) {
currentPath.removeLast();
}
currentPath.removeLast();
} else if(node instanceof XmlContent) {
XmlContent content = (XmlContent) node;
if(currentPath.getLast() instanceof Content) {
currentPath.removeLast();
}
currentPath.addLast(new Content(content.getText()));
} else {
throw new XmlReaderException("Unknown XmlNode type: " + node);
}
}
return false;