*node = nsnull; nsresult rv;
nsresult rv = NS_ERROR_OUT_OF_MEMORY;
nsresult createNode(nsString& str, nsIRDFNode **node, nsIRDFService *rdfService){	*node = nsnull;	nsresult rv; 	if (!rdfService) return NS_ERROR_NULL_POINTER;  	nsCOMPtr<nsIRDFLiteral> value;	rv = rdfService->GetLiteral(str.get(), getter_AddRefs(value));	if(NS_SUCCEEDED(rv)) {		*node = value;		NS_IF_ADDREF(*node);	}	return rv;}