Refactor create() and update() methods to consume data in XML and JSON.