kIdAtom                = NS_NewAtom("ID");
kIdAtom                = NS_NewAtom("id");
RDFXULBuilderImpl::RDFXULBuilderImpl(void)    : mDB(nsnull),      mDocument(nsnull),      mRoot(nsnull){    NS_INIT_REFCNT();    if (gRefCnt++ == 0) {        // XXX should hold on to the manager for the duration, as well.        nsresult rv;        if (NS_SUCCEEDED(rv = nsRepository::CreateInstance(kNameSpaceManagerCID,                                                           nsnull,                                                           kINameSpaceManagerIID,                                                           (void**) &gNameSpaceManager))) {            rv = gNameSpaceManager->RegisterNameSpace(kXULNameSpaceURI, kNameSpaceID_XUL);            NS_ASSERTION(NS_SUCCEEDED(rv), "unable to register XUL namespace");            rv = gNameSpaceManager->RegisterNameSpace(kRDFNameSpaceURI, kNameSpaceID_RDF);            NS_ASSERTION(NS_SUCCEEDED(rv), "unable to register RDF namespace");        }        else {            NS_ERROR("couldn't create namepsace manager");        }        kContainerAtom         = NS_NewAtom("container");        kContentsGeneratedAtom = NS_NewAtom("contentsGenerated");        kIdAtom                = NS_NewAtom("ID");        kDataSourcesAtom       = NS_NewAtom("datasources");        kTreeAtom              = NS_NewAtom("tree");        if (NS_SUCCEEDED(rv = nsServiceManager::GetService(kRDFServiceCID,                                                           kIRDFServiceIID,                                                           (nsISupports**) &gRDFService))) {            NS_VERIFY(NS_SUCCEEDED(gRDFService->GetResource(kURIRDF_instanceOf, &kRDF_instanceOf)),                      "unable to get resource");            NS_VERIFY(NS_SUCCEEDED(gRDFService->GetResource(kURIRDF_nextVal, &kRDF_nextVal)),                      "unable to get resource");            NS_VERIFY(NS_SUCCEEDED(gRDFService->GetResource(kURIRDF_type, &kRDF_type)),                      "unable to get resource");            NS_VERIFY(NS_SUCCEEDED(gRDFService->GetResource(kURIRDF_child, &kRDF_child)),                      "unable to get resource");            NS_VERIFY(NS_SUCCEEDED(gRDFService->GetResource(kURIXUL_element, &kXUL_element)),                      "unable to get resource");        }        else {            NS_ERROR("couldn't get RDF service");        }    }}