No need to use JSON to convert XML to an array. get_object_vars() works too.