示例#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");
   }
 }
示例#2
0
 @Override
 public void close() throws IOException {
   // Close all opened tags.
   while (serializer.getDepth() > 0) {
     serializer.endTag(serializer.getNamespace(), serializer.getName());
   }
   serializer.endDocument();
 }
示例#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");
   }
 }