Fetching a remote XML file and convert it to JSON with PHP

Job ID: 36858753

Budget: $30 – $250 USD

I got a XML file that i need to fetch and convert to JSON with PHP.
This can i make myselv. But the server has some type of protection so its not posible go grab the file by normal CURL / file_get_contents. But a site like convertcsv.io/products/xml2json can fetch it, so i guess its posible some how.

I cold use convertcsv but thats to slow and to exspensive.
To be sure you are not a robot you need to write "JSON JSON JSON" in the TOP of your bid, or i wont answer your bid. The job also need to be done right away.

The file look like this and the url is like this:

https://****.com/ajax/data.asp?_type=0&d=0.01868333617013443

<markers>
<marker name=", , " lat="3.1679833333333" lng="-10.8498166666667" navn="event" ikon="30" pri="100"/>
<marker name="BAMA" lat="8.8525009155273" lng="-9.54500007629394" navn="John" ikon="33" pri="300"/>
<marker name="BAMA" lat="3.0881652832031" lng="-6.35216665267944" navn="THomas" ikon="33" pri="300"/>
<marker name="test" lat="8.41210666666667" lng="1-6.00353" navn="Mountan" ikon="8" pri="92"/>
</markers>
Related categories: PHP JavaScript XML