else if (iid.Equals(nsIDOMNodeObserver::GetIID())) { *aResult = NS_STATIC_CAST(nsIDOMNodeObserver*, this); } else if (iid.Equals(nsIDOMElementObserver::GetIID())) { *aResult = NS_STATIC_CAST(nsIDOMElementObserver*, this); }
RDFGenericBuilderImpl::QueryInterface(REFNSIID iid, void** aResult){    NS_PRECONDITION(aResult != nsnull, "null ptr");    if (! aResult)        return NS_ERROR_NULL_POINTER;    if (iid.Equals(kIRDFContentModelBuilderIID) ||        iid.Equals(kISupportsIID)) {        *aResult = NS_STATIC_CAST(nsIRDFContentModelBuilder*, this);    }    else if (iid.Equals(kIRDFObserverIID)) {        *aResult = NS_STATIC_CAST(nsIRDFObserver*, this);    }    else if (iid.Equals(nsIDOMNodeObserver::GetIID())) {        *aResult = NS_STATIC_CAST(nsIDOMNodeObserver*, this);    }    else if (iid.Equals(nsIDOMElementObserver::GetIID())) {        *aResult = NS_STATIC_CAST(nsIDOMElementObserver*, this);    }    else {        *aResult = nsnull;        return NS_NOINTERFACE;    }    NS_ADDREF(this);    return NS_OK;}