DocumentType doctype) throws DOMException
{
Document doc;
if (isHTMLorXHTMLDocument(namespaceURI,qualifiedName))
{
doc = new HTMLDocumentImpl(doctype, this);
doc.appendChild(doc.createElement(qualifiedName)); // Da igual usar createElementNS
}
else
{
doc = new OtherNSDocumentImpl(doctype, this);