I've had good luck using hydrogen peroxide to remove cat vomit stains and other cat accident/gland leakage spots on my wall to wall carpeting.
I just pour some peroixde onto the stain, let it set a few minutes, then blot it with a clean white rag.
HTH, Pami