/src/main/java/org/htmlunit/util/XmlUtils.java
page, documentType.getSystemId( ) , documentType.getPublicId( ) , documentType.getSystemId( ) ) ;
page, documentType.getName ( ) , documentType.getPublicId ( ) , documentType.getSystemId ( ) ) ;
} public static void appendChild(final SgmlPage page, final DomNode parent, final Node child, final boolean handleXHTMLAsHTML, final Map<Integer, List<String>> attributesOrderMap) { final DocumentType documentType = child.getOwnerDocument().getDoctype(); if (documentType != null && page instanceof XmlPage) { final DomDocumentType domDoctype = new DomDocumentType( <extra_id_0> ((XmlPage) page).setDocumentType(domDoctype); } final DomNode childXml = createFrom(page, child, handleXHTMLAsHTML, attributesOrderMap); parent.appendChild(childXml); copy(page, child, childXml, handleXHTMLAsHTML, attributesOrderMap); }