[ADD] Allow different output: xml, json, php