parse xml and ready to print table