title: One huge XML file with long SQL statement or not?
body: <p>I have a database with about 10 tables and they are all interconnected in some way(foreign keys, assosiative tables).</p>
  
  <p>I want to use all that data to plot it on my instance of Google Map as markers with infoboxes and be able to filter the map.</p>
  
  <p>Judging from the <a href="https://developers.google.com/maps/documentation/javascript/articles" rel="nofollow">Google Maps Articles</a> you have to use XML with the data from the database to plot the markers and everything else.</p>
  
  <p>But what would be the right way to generate that XML file? Have a huge SQL statement to generate one XML file with entire data from all tables upon the load of the web-page and the map or is there a more correct approach for this?</p>