Parse XML as well as JSON