if (NS_FAILED(rv)) return rv;
if (NS_FAILED(rv)) return(rv);
nsHTTPIndex::Init(){	nsresult	rv;    // set initial/default encoding to ISO-8859-1 (not UTF-8)    mEncoding = "ISO-8859-1";	if (gRefCnt++ == 0)	{		rv = nsServiceManager::GetService(kRDFServiceCID,			NS_GET_IID(nsIRDFService), (nsISupports**) &gRDF);		NS_ASSERTION(NS_SUCCEEDED(rv), "unable to get RDF service");		if (NS_FAILED(rv)) return rv;		if (NS_FAILED(rv = nsComponentManager::CreateInstance(kRDFInMemoryDataSourceCID,				nsnull, NS_GET_IID(nsIRDFDataSource), (void**) getter_AddRefs(mInner))))		{			return(rv);		}		gRDF->GetResource(NC_NAMESPACE_URI "child",   &kNC_Child);		gRDF->GetResource(NC_NAMESPACE_URI "loading", &kNC_loading);		// register this as a named data source with the RDF service		rv = gRDF->RegisterDataSource(this, PR_FALSE);		if (NS_FAILED(rv)) return rv;	}	return(NS_OK);}