Altered XML function prototypes. Updated comments. Continued on tests.