/src/main/java/org/htmlunit/util/XmlUtils.java
final ElementFactory factory = page.getWebClient( ).getPageCreator( ).getHtmlParser( ).getFactory( qualifiedName) ;
final ElementFactory factory = page.getWebClient ( ) .getPageCreator ( ) .getHtmlParser ( ) .getFactory ( localName ) ;
return new DomDocumentType(page, documentType.getName(), documentType.getPublicId(), documentType.getSystemId()); } final String ns = source.getNamespaceURI(); String localName = source.getLocalName(); if (handleXHTMLAsHTML && Html.XHTML_NAMESPACE.equals(ns)) { <extra_id_0> return factory.createElementNS(page, ns, localName, namedNodeMapToSaxAttributes(source.getAttributes(), attributesOrderMap, source)); } final NamedNodeMap nodeAttributes = source.getAttributes(); if (page != null && page.isHtmlPage()) { localName = localName.toUpperCase(Locale.ROOT);