title: Querying a second XML page with strings
body: <p>Would anyone be willing to help me figure out how I can retrieve the franchise name from the second XML page using the franchise id?</p>
  
  <p>I am working with two different pages. The first page will get me a list of the franchise ids. I would like to be able to get the franchise name from the second XML page by using the franchise id from the first page.</p>
  
  <p>Let me know if you need more information, in order to be able to help.</p>
  
  <p>I am looking for an answer in PHP.</p>
  
  <p>PHP: Parsing first XML page</p>
  
  <pre><code>$url = "XMLPAGEURL";
   $xml = simplexml_load_file($url);
    foreach ($xml-&gt;franchise as $franchise) {
     echo ''.$franchise[id].'';
    }
  </code></pre>
  
  <p>Second XML page</p>
  
  <pre><code>&lt;league id="1"/&gt;
   &lt;franchises count="5"&gt;
    &lt;franchise name="A" id="0001"/&gt;
    &lt;franchise name="B" id="0002"/&gt;
    &lt;franchise name="C" id="0003"/&gt;
    &lt;franchise name="D" id="0004"/&gt;
    &lt;franchise name="E" id="0005"/&gt;
   &lt;/franchises&gt;
  &lt;/league&gt;
  </code></pre>