NS_ASSERTION(NS_SUCCEEDED(rv), "unable to get RDF service");
rv = rdf->GetResource(RDF_NAMESPACE_URI "instanceOf", &kRDF_instanceOf); rv = rdf->GetResource(RDF_NAMESPACE_URI "nextVal",    &kRDF_nextVal); rv = rdf->GetResource(RDF_NAMESPACE_URI "Bag",        &kRDF_Bag); rv = rdf->GetResource(RDF_NAMESPACE_URI "Seq",        &kRDF_Seq); rv = rdf->GetResource(RDF_NAMESPACE_URI "Alt",        &kRDF_Alt);  rv = nsServiceManager::GetService(kRDFContainerUtilsCID, nsIRDFContainerUtils::GetIID(), (nsISupports**) &gRDFC);  NS_ASSERTION(NS_SUCCEEDED(rv), "unable to get container utils");
RDFXMLDataSourceImpl::Init(){    nsresult rv;    rv = nsComponentManager::CreateInstance(kRDFInMemoryDataSourceCID,                                            nsnull,                                            NS_GET_IID(nsIRDFDataSource),                                            (void**) &mInner);    if (NS_FAILED(rv)) return rv;    if (gRefCnt++ == 0) {        rv = nsServiceManager::GetService(kRDFServiceCID,                                          NS_GET_IID(nsIRDFService),                                          NS_REINTERPRET_CAST(nsISupports**, &gRDFService));        NS_ASSERTION(NS_SUCCEEDED(rv), "unable to get RDF service");        if (NS_FAILED(rv)) return rv;    }    return NS_OK;}