separate xml and json parser