}
public void testNestedIndentWithAttr() throws IOException
{
StringWriter buf = new StringWriter();
IndentingXMLWriter writer = new IndentingXMLWriter(buf, "\t");
writer.write("Before Start");
writer.openElement("tag");
writer.write("Attr");
writer.closeElement();
writer.openElement("child1");
writer.write("Attr1");
writer.closeElement();
writer.openElement("child2");
writer.write("Attr2");
writer.closeElement();
writer.endElement("child2");
writer.endElement("child1");
writer.startElement("childA");
assertEquals("Before Start<tagAttr>" +
SysUtil.LINE_SEP +
"\t<child1Attr1>" +
SysUtil.LINE_SEP +