fix variable naming (json -> xml)