use of org.apache.cxf.aegis.util.jdom.StaxBuilder in project cxf by apache.
the class WriterTest method testLiteral.
@Test
public void testLiteral() throws Exception {
ByteArrayOutputStream bos = new ByteArrayOutputStream();
ElementWriter writer = new ElementWriter(bos, "root", "urn:test");
write(writer);
writer.flush();
bos.close();
// System.out.println(bos.toString());
StaxBuilder builder = new StaxBuilder();
Document doc = builder.build(new StringReader(bos.toString()));
testWrite(doc);
}
Aggregations