nsCOMPtr<nsIDOMNode> modelNode = nsXFormsUtils::GetModel(mElement);  nsCOMPtr<nsIModelElementPrivate> model = do_QueryInterface(modelNode);
nsCOMPtr<nsIModelElementPrivate> model = nsXFormsUtils::GetModel(mElement);
nsXFormsRepeatElement::WillSetAttribute(nsIAtom *aName, const nsAString &aValue){#ifdef DEBUG_XF_REPEAT  printf("nsXFormsRepeatElement::WillSetAttribute(aName=%p, aValue='%s')\n", (void*) aName, NS_ConvertUCS2toUTF8(aValue).get());#endif    if (aName == nsXFormsAtoms::bind ||      aName == nsXFormsAtoms::nodeset ||      aName == nsXFormsAtoms::model) {    nsCOMPtr<nsIDOMNode> modelNode = nsXFormsUtils::GetModel(mElement);    nsCOMPtr<nsIModelElementPrivate> model = do_QueryInterface(modelNode);        if (model) {      model->RemoveFormControl(this);    }  }    return NS_OK;}