else if (iid.Equals(kIExpatSinkIID)) { *result = NS_STATIC_CAST(nsIExpatSink*, this); AddRef(); return NS_OK; }
RDFContentSinkImpl::QueryInterface(REFNSIID iid, void** result){    NS_PRECONDITION(result, "null ptr");    if (! result)        return NS_ERROR_NULL_POINTER;    *result = nsnull;    if (iid.Equals(kIRDFContentSinkIID) ||        iid.Equals(kIXMLContentSinkIID) ||        iid.Equals(kIContentSinkIID) ||        iid.Equals(kISupportsIID)) {        *result = NS_STATIC_CAST(nsIXMLContentSink*, this);        AddRef();        return NS_OK;    }    else if (iid.Equals(kIExpatSinkIID)) {      *result = NS_STATIC_CAST(nsIExpatSink*, this);       AddRef();       return NS_OK;    }    return NS_NOINTERFACE;}