Support XML and JSON