element->mNameSpaceID = aNameSpaceID; element->mTag         = aTag;
element->mNodeInfo    = aNodeInfo;
XULContentSinkImpl::CreateElement(PRInt32 aNameSpaceID,                                  nsIAtom* aTag,                                  nsXULPrototypeElement** aResult){    nsresult rv;    nsXULPrototypeElement* element = new nsXULPrototypeElement(/* line number */ -1);    if (! element)        return NS_ERROR_OUT_OF_MEMORY;    element->mNameSpaceID = aNameSpaceID;    element->mTag         = aTag;    element->mDocument    = mPrototype;    nsCOMPtr<nsINameSpace> ns;    rv = GetTopNameSpace(&ns);    if (NS_SUCCEEDED(rv)) {        element->mNameSpace = ns;        nsCOMPtr<nsIAtom> prefix;        rv = ns->FindNameSpacePrefix(aNameSpaceID, *getter_AddRefs(prefix));        if (NS_SUCCEEDED(rv)) {            element->mNameSpacePrefix = prefix;        }    }    *aResult = element;    return NS_OK;}