DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setNamespaceAware(false);
DocumentBuilder builder = dbf.newDocumentBuilder();
Document srcDoc = builder.parse(is);
dbf.setNamespaceAware(true);
Document destDoc = builder.newDocument();
transform(srcDoc, destDoc);
NodeList chainNodes = destDoc.getFirstChild().getChildNodes();
for (int i = 0; i < chainNodes.getLength(); i++) {
Node node = chainNodes.item(i);