/* * @see org.primordion.xholon.io.xml.XmlWriter#writeEndElement(String name) */ public void writeEndElement(String name) { if ("Annotation".equals(name)) { return; } // try { if (richText.length() > 0) { super.writeStartElement("rich_text"); super.writeText(richText); super.writeEndElement("rich_text"); // rich_text richText = ""; } super.writeEndElement("node"); // node // } catch (XMLStreamException e) { // e.printStackTrace(); // } }
/* * @see org.primordion.xholon.io.xml.XmlWriter#writeEndDocument() */ public void writeEndDocument() { /*try { ctdWriter.writeEndElement(); // cherrytree ctdWriter.writeEndDocument(); } catch (XMLStreamException e) { e.printStackTrace(); }*/ super.writeEndElement("cherrytree"); }