Solving some problems with the xml parsed from json