XML now works, but sorting is yet to be done