XML APIs for the XP Framework