If you are getting an error that says “There is no ID/IDREF binding for IDREF” when validating an XML file you should check if an IDREF-typed attribute somewhere is pointing to an ID that is not defined anywhere yet.