xml-to-json
xml-to-json copied to clipboard
Ampersand (&) not correctly escaped
I'm having trouble trying to parse XML from this link:
http://www.managerzone.com/xml/team_league.php?sport_id=1&league_id=16222
Just because of the ampersand, the API considers it as a new parameter so it parses the content of this link instead:
http://www.managerzone.com/xml/team_league.php?sport_id=1
Probably this would help:
https://stackoverflow.com/questions/5020345/how-to-escape-ampersand-character-in-form-input-using-jquery
Same as #7.
You're supposed to escape the ampersand yourself: https://api.factmaven.com/xml-to-json/?xml=http://www.managerzone.com/xml/team_league.php?sport_id=1%26league_id=16222