mNameSpaceStack(nsnull), mState(eRDFContentSinkState_InProlog), mParseMode(eRDFContentSinkParseMode_Literal), mContextStack(nsnull), mDocumentURL(nsnull)
mConstrainSize(PR_TRUE), mHaveSetRootResource(PR_FALSE)
RDFContentSinkImpl::RDFContentSinkImpl()    : mText(nsnull),      mTextLength(0),      mTextSize(0),      mNameSpaceStack(nsnull),      mState(eRDFContentSinkState_InProlog),      mParseMode(eRDFContentSinkParseMode_Literal),      mContextStack(nsnull),      mDocumentURL(nsnull){    if (gRefCnt++ == 0) {        nsresult rv;        rv = nsServiceManager::GetService(kRDFServiceCID,                                          kIRDFServiceIID,                                          (nsISupports**) &gRDFService);        NS_ASSERTION(NS_SUCCEEDED(rv), "unable to get RDF service");        if (NS_SUCCEEDED(rv)) {            rv = gRDFService->GetResource(NS_LITERAL_CSTRING(RDF_NAMESPACE_URI "type"),                                          &kRDF_type);            rv = gRDFService->GetResource(NS_LITERAL_CSTRING(RDF_NAMESPACE_URI "instanceOf"),                                          &kRDF_instanceOf);            rv = gRDFService->GetResource(NS_LITERAL_CSTRING(RDF_NAMESPACE_URI "Alt"),                                          &kRDF_Alt);            rv = gRDFService->GetResource(NS_LITERAL_CSTRING(RDF_NAMESPACE_URI "Bag"),                                          &kRDF_Bag);            rv = gRDFService->GetResource(NS_LITERAL_CSTRING(RDF_NAMESPACE_URI "Seq"),                                          &kRDF_Seq);            rv = gRDFService->GetResource(NS_LITERAL_CSTRING(RDF_NAMESPACE_URI "nextVal"),                                          &kRDF_nextVal);        }        rv = nsServiceManager::GetService(kRDFContainerUtilsCID,                                          NS_GET_IID(nsIRDFContainerUtils),                                          (nsISupports**) &gRDFContainerUtils);        NS_RegisterStaticAtoms(rdf_atoms, NS_ARRAY_LENGTH(rdf_atoms));    }#ifdef PR_LOGGING    if (! gLog)        gLog = PR_NewLogModule("nsRDFContentSink");#endif}