IndentingXMLWriter writer = new IndentingXMLWriter(buf, "\t");
writer.write("Before Start");
writer.openElement("tag");
writer.write("Attr");
writer.closeElement();
writer.write("Inline");
writer.endElement("tag");
assertEquals("Before Start<tagAttr>Inline</tag>", buf.toString());
}