title: Displaying XML Contents in a table with php
body: <p>I am trying to have the contents of this XML located at <a href="http://data.fcc.gov/api/license-view/basicSearch/getLicenses?searchValue=W1AW" rel="nofollow">http://data.fcc.gov/api/license-view/basicSearch/getLicenses?searchValue=W1AW</a> (I'm using the W1AW call sign as an example) displayed in a table (not every entry, only "licName", "callsign", "serviceDesc", "statusDesc", and "expiredDate".)</p>
  
  <p>On my website I want the use to be able to choose what call sign to search based on the url parremeter ?callsign=choicehere (ex: mywebsite.com/callsignresults.php?callsign=w1aw)</p>
  
  <p>I currently have the following code. I only got the parameter working.</p>
  
  <pre><code>&lt;?php
  $file = file_get_contents('http://data.fcc.gov/api/license-view/basicSearch/getLicenses?searchValue=' . ($_GET["callsign"]));
  echo $file;
  ?&gt;
  </code></pre>
  
  <p>So how do I go about converting the XML data into a user friendly readable table.</p>
  
  <p>Table Example Idea:</p>
  
  <pre class="lang-none prettyprint-override"><code>| NAME     | CALL SIGN | TYPE    | STATUS  | EXPIRATION DATE |
  --------------------------------------------------------------
  | John Doe | XXXX      | Amature | Active  |          1/1/13 |
  | Jane Doe | X1X1X     | Amature | Expired |          1/1/13 |
  </code></pre>
  
  <p><a href="https://www.fcc.gov/developers/license-view-api" rel="nofollow">API Documentation</a></p>