if (nameSpaceURI.IsEmpty() || nameSpaceURI.EqualsLiteral(RDF_NAMESPACE_URI)) { if (v.EqualsLiteral("Resource"))
if (!nameSpaceURI || 0 == PL_strcmp(nameSpaceURI, kRDFNameSpaceURI)) { if (v == NS_LITERAL_STRING("Resource"))
RDFContentSinkImpl::SetParseMode(const PRUnichar **aAttributes){    nsCOMPtr<nsIAtom> localName;    for (; *aAttributes; aAttributes += 2) {        const nsDependentSubstring& nameSpaceURI =            SplitExpatName(aAttributes[0], getter_AddRefs(localName),                           aAttributes[1]);        if (localName == kParseTypeAtom) {            nsAutoString v(aAttributes[1]);            nsRDFParserUtils::StripAndConvert(v);            if (nameSpaceURI.IsEmpty() ||                nameSpaceURI.EqualsLiteral(RDF_NAMESPACE_URI)) {                if (v.EqualsLiteral("Resource"))                    mParseMode = eRDFContentSinkParseMode_Resource;                break;            }            else if (nameSpaceURI.EqualsLiteral(NC_NAMESPACE_URI)) {                if (v.EqualsLiteral("Date"))                    mParseMode = eRDFContentSinkParseMode_Date;                else if (v.EqualsLiteral("Integer"))                    mParseMode = eRDFContentSinkParseMode_Int;                break;            }        }    }}