TemplateDocument document = parser.parse();
Tag tag = document.getElementsByTagName("body").get(0);
Tag bodyTag = doc.getElementsByTagName("body").get(0);
bodyTag.addChildren(tag.getChildren());
} catch (IOException e) {
e.printStackTrace();
} catch (TemplateParsingException e) {
e.printStackTrace();