Generic parser API for XP Framework