return answer;
}
public static String nodeWithNamespacesToText(Node parseNode, Element namespacesNode) throws IOException {
// we need to add any namespace prefixes defined in the root directory
Node copy = parseNode.copy();
if (copy instanceof Element && parseNode instanceof Element) {
moveCommentsIntoDescriptionElements((Element) copy, (Element) parseNode);
addParentNamespaces((Element) copy, namespacesNode.getParent());
}
return xmlToText(copy);