title: How to parse XML results with multiple pages
body: <p>I'm hacking away at an API from which I'm parsing XML results files with PHP. Each XML result page displays 50 results max after the initial query. To see additional results, at 50 results per page, you must append ?pagenum=2, ?pagenum=3, and so on to the XML file URL.</p>
  
  <p>So, my question is, how do I use PHP to automatically display results for subsequent pages until there are no additional page results left, after running the search query only once from front end input box? Instead of stopping at and displaying 50 results, all results possible should be displayed. Thanks</p>