// System.out.println(i);
Element test = tests.get(i);
test.detach();
Document testdoc = new Document(test);
ByteArrayOutputStream out = new ByteArrayOutputStream();
Serializer serializer = new Serializer(out);
serializer.setUnicodeNormalizationFormC(true);
serializer.write(testdoc);
serializer.flush();
String result = new String(out.toByteArray(), "UTF-8");
Document resultDoc = builder.build(result, null);
Element root = resultDoc.getRootElement();
String c1 = root.getAttributeValue("c1");
String c2 = root.getAttributeValue("c2");