NS_NOTYETIMPLEMENTED("can't handle standalone RDF elements"); return NS_ERROR_NOT_IMPLEMENTED; }
*aParentNode = nsnull; return NS_OK;
RDFElementImpl::GetParentNode(nsIDOMNode** aParentNode){    if (mParent) {        return mParent->QueryInterface(kIDOMNodeIID, (void**) aParentNode);    }    else if (mDocument) {        // If we don't have a parent, but we're in the document, we must        // be the root node of the document. The DOM says that the root        // is the document.        return mDocument->QueryInterface(kIDOMNodeIID, (void**)aParentNode);    }    else {        // A standalone element (i.e. one without a parent or a document)        // implicitly has a document fragment as its parent according to        // the DOM.        // XXX create a doc fragment here as a pseudo-parent.        NS_NOTYETIMPLEMENTED("can't handle standalone RDF elements");        return NS_ERROR_NOT_IMPLEMENTED;    }}