writer.writeEndElement();
}
public void readData(XMLStreamReader reader, Dhns dhns) throws XMLStreamException {
GraphStructure structure = dhns.getGraphStructure();
TreeStructure treeStructure = structure.getMainView().getStructure();
boolean end = false;
while (reader.hasNext() && !end) {
Integer eventType = reader.next();
if (eventType.equals(XMLEvent.START_ELEMENT)) {