I think for xml spawners I use the following syntax, but it's been a few months so I'm not sure..
guard, medic/ai_type/ai_healer
Archers, Medics, and Wizards will not spawn with proper AI on XML spawners unless you do as Vii posted or use the above syntax.