private void end(String tagName) throws IOException { xml.endTag(null, tagName); xml.text("\n"); for (int i = 1; i < xml.getDepth(); i++) { xml.text("\t"); } }
@Override public void close() throws IOException { // Close all opened tags. while (serializer.getDepth() > 0) { serializer.endTag(serializer.getNamespace(), serializer.getName()); } serializer.endDocument(); }
private void text(String text) throws IOException { xml.text("\t" + text + "\n"); for (int i = 1; i < xml.getDepth(); i++) { xml.text("\t"); } }