if (NS_FAILED(rv = CreateElement(aResource, getter_AddRefs(root)))) {
if (NS_FAILED(rv = CreateElement(nameSpace, aResource, getter_AddRefs(root)))) {
RDFXULBuilderImpl::CreateRootContent(nsIRDFResource* aResource){    NS_PRECONDITION(mDocument != nsnull, "not initialized");    if (! mDocument)        return NS_ERROR_NOT_INITIALIZED;    NS_PRECONDITION(aResource != nsnull, "null ptr");    if (! aResource)        return NS_ERROR_NULL_POINTER;    nsresult rv;    nsCOMPtr<nsIContent> root;    if (NS_FAILED(rv = CreateElement(aResource, getter_AddRefs(root)))) {        NS_ERROR("unable to create root element");        return rv;    }    // Now set it as the document's root content    nsCOMPtr<nsIDocument> doc;    if (NS_FAILED(rv = mDocument->QueryInterface(kIDocumentIID,                                                 (void**) getter_AddRefs(doc)))) {        NS_ERROR("couldn't get nsIDocument interface");        return rv;    }    doc->SetRootContent(root);    mRoot = root;    NS_ADDREF(mRoot);    return NS_OK;}