XML and JSON formatter