kIdAtom        = NS_NewAtom("ID");
kIdAtom        = NS_NewAtom("id");
RDFElementImpl::RDFElementImpl(PRInt32 aNameSpaceID, nsIAtom* aTag)    : mDocument(nsnull),      mScriptObject(nsnull),      mChildren(nsnull),      mParent(nsnull),      mNameSpaceID(aNameSpaceID),      mTag(aTag),      mListenerManager(nsnull),      mAttributes(nsnull),      mContentsMustBeGenerated(PR_FALSE),      mBroadcaster(nsnull){    NS_INIT_REFCNT();    NS_ADDREF(aTag);    if (gRefCnt++ == 0) {        nsresult rv;        rv = nsServiceManager::GetService(kRDFServiceCID,                                          kIRDFServiceIID,                                          (nsISupports**) &gRDFService);        NS_VERIFY(NS_SUCCEEDED(rv), "unable to get RDF service");        kIdAtom        = NS_NewAtom("ID");        kContainerAtom = NS_NewAtom("container");        rv = nsRepository::CreateInstance(kNameSpaceManagerCID,                                          nsnull,                                          kINameSpaceManagerIID,                                          (void**) &gNameSpaceManager);        NS_VERIFY(NS_SUCCEEDED(rv), "unable to create namespace manager");        if (gNameSpaceManager) {            gNameSpaceManager->RegisterNameSpace(kRDFNameSpaceURI, kNameSpaceID_RDF);            gNameSpaceManager->RegisterNameSpace(kXULNameSpaceURI, kNameSpaceID_XUL);        }    }}