RDFXULBuilderImpl::CreateHTMLContents(nsIContent* aElement,
RDFXULBuilderImpl::CreateHTMLContents(nsINameSpace* aContainingNameSpace, nsIContent* aElement,
RDFXULBuilderImpl::CreateHTMLContents(nsIContent* aElement,                                      nsIRDFResource* aResource){    nsresult rv;    nsCOMPtr<nsIRDFAssertionCursor> children;    if (NS_FAILED(rv = NS_NewContainerCursor(mDB, aResource, getter_AddRefs(children)))) {        NS_ERROR("unable to create cursor for children");        return rv;    }    while (1) {        rv = children->Advance();        if (NS_FAILED(rv))            return rv;        if (rv == NS_RDF_CURSOR_EMPTY)            break;        nsCOMPtr<nsIRDFNode> child;        if (NS_FAILED(rv = children->GetTarget(getter_AddRefs(child)))) {            NS_ERROR("error reading cursor");            return rv;        }        if (NS_FAILED(AppendChild(aElement, child))) {            NS_ERROR("problem appending child to content model");            return rv;        }    }    return NS_OK;}