nsresult rv; nsAutoString str; str.AppendInt((PRInt32)value); rv = createNode(str, node, rdfService); return rv;
nsresult rv = NS_ERROR_OUT_OF_MEMORY;  if (!rdfService) return NS_ERROR_NULL_POINTER; nsCOMPtr<nsIRDFLiteral> value; nsAutoString str; str.AssignWithConversion(charstr);  rv = rdfService->GetLiteral(NS_ConvertUTF8toUCS2(charstr).GetUnicode(), getter_AddRefs(value));  if(NS_SUCCEEDED(rv)) { *node = value; NS_IF_ADDREF(*node); } return rv;
nsresult createNode(PRUint32 value, nsIRDFNode **node, nsIRDFService *rdfService){	nsresult rv;	nsAutoString str;  str.AppendInt((PRInt32)value);	rv = createNode(str, node, rdfService);	return rv;}