nsCOMPtr<nsIDOMNode> model = nsXFormsUtils::GetModel(mElement);
nsCOMPtr<nsIModelElementPrivate> modelPriv = nsXFormsUtils::GetModel(mElement); nsCOMPtr<nsIDOMNode> model = do_QueryInterface(modelPriv);
nsXFormsResetElement::HandleAction(nsIDOMEvent* aEvent,                                   nsIXFormsActionElement *aParentAction){  nsCOMPtr<nsIDOMNode> model = nsXFormsUtils::GetModel(mElement);    if (model) {    if (aParentAction) {      aParentAction->SetRebuild(model, PR_FALSE);      aParentAction->SetRecalculate(model, PR_FALSE);      aParentAction->SetRevalidate(model, PR_FALSE);      aParentAction->SetRefresh(model, PR_FALSE);    }    return nsXFormsUtils::DispatchEvent(model, eEvent_Reset);  }  return NS_OK;}