Example #1
0
 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");
   }
 }
Example #2
0
 @Override
 public void close() throws IOException {
   // Close all opened tags.
   while (serializer.getDepth() > 0) {
     serializer.endTag(serializer.getNamespace(), serializer.getName());
   }
   serializer.endDocument();
 }
Example #3
0
 private void text(String text) throws IOException {
   xml.text("\t" + text + "\n");
   for (int i = 1; i < xml.getDepth(); i++) {
     xml.text("\t");
   }
 }