If there is a flag in MAME's -listxml output (maybe driver status=good or something), you need to extract the list of sets with that attribute from the XML.
Such a set list can then be used in Scanner->Scan Results->Set Information (bottom left button) to enable/disable the sets.
....but somehow I guess you have a different understanding of working...