if (NS_FAILED(rv = container->RemoveElement(src, PR_TRUE))) return rv;
nsCOMPtr<nsIRDFContainer>	container; if (NS_FAILED(rv = nsComponentManager::CreateInstance(kRDFContainerCID, nsnull, nsIRDFContainer::GetIID(), getter_AddRefs(container)))) return(rv); if (NS_FAILED(rv = container->Init(mInner, argParent))) return(rv);
nsBookmarksService::deleteBookmarkItem(nsIRDFResource *src,                                       nsISupportsArray *aArguments,                                       PRInt32 parentArgIndex){    nsresult            rv;    nsCOMPtr<nsIRDFNode>        aNode;    if (NS_FAILED(rv = getArgumentN(aArguments, kNC_Parent,            parentArgIndex, getter_AddRefs(aNode))))        return rv;    nsCOMPtr<nsIRDFResource>    argParent = do_QueryInterface(aNode);    if (!argParent) return NS_ERROR_NO_INTERFACE;    nsCOMPtr<nsIRDFContainer>   container;    if (NS_FAILED(rv = nsComponentManager::CreateInstance(kRDFContainerCID, nsnull,            NS_GET_IID(nsIRDFContainer), getter_AddRefs(container))))        return rv;    if (NS_FAILED(rv = container->Init(this, argParent)))        return rv;    if (NS_FAILED(rv = container->RemoveElement(src, PR_TRUE)))        return rv;    return rv;}