/src/main/java/org/htmlunit/util/XmlUtils.java
final DomNode sourceXml = createFrom( page, child, handleXHTMLAsHTML, attributesOrderMap) ;
final DomNode childXml = createFrom ( page, child, handleXHTMLAsHTML, attributesOrderMap ) ;
final boolean handleXHTMLAsHTML, final Map<Integer, List<String>> attributesOrderMap) { final NodeList nodeChildren = source.getChildNodes(); for (int i = 0; i < nodeChildren.getLength(); i++) { final Node child = nodeChildren.item(i); switch (child.getNodeType()) { case Node.ELEMENT_NODE: <extra_id_0> dest.appendChild(childXml); copy(page, child, childXml, handleXHTMLAsHTML, attributesOrderMap); break; case Node.TEXT_NODE: dest.appendChild(new DomText(page, child.getNodeValue())); break;