php – downloadUrl with file in local

I'm working with the Google Maps API where I upload the locations and descriptions from the server to the map. For this I have 4 files db_connect.php where I have my function that connects PHP with my MySQL database and db_gmapi that extends from db_connect.php , connect to the database, lift the info in it and save it in an XML file that I have called directions.xml finally I have my index.html for the part to load the map and show the bookmarks with the locations of the file directions.xml.

The map loads, the BBDD connects perfectly, the file is generated … but it does not show the markers because the function downloadUrl (url, callback) in mmi index.html justly demands that the file directions.xml comes from a file "url" and I'm working on localhost and the file is inside the root folder along with index.html. Try sticking the route of the directions.xml and the file name and it did not work … How can I solve it?

Code index.html


        #map {
    height: 100%;
  }

  html, body {
    height: 100%;
    margin: 0;
    padding: 0;
  }