title: Display only certain elements XML File
body: <p>I have a php script that retrieves an XML file from a database and displays it in html. </p>
  
  <p>I only want to display some parameters from the XML in my html, I was wondering what was the best way to do it. </p>
  
  <p>Suppose that bellow I would only like to display the Format and TIM attributes of the XML. What would I need to modify on the html?
  I've read that I can delete elements using XSLT but then I would need to modify the xml in the database, is there another way to do it with just html or xml?</p>
  
  <p>Xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;File&gt;
  &lt;track type="General"&gt;
     &lt;Format&gt;MPEG-4&lt;/Format&gt;
     &lt;Codec_ID&gt;mp42&lt;/Codec_ID&gt;
     &lt;Codec_ID&gt;mp42 (mp42/mp41)&lt;/Codec_ID&gt;
     &lt;Tagged_date&gt;UTC 2016-03-28 20:21:33&lt;/Tagged_date&gt;
     &lt;TIM&gt;00:00:00:00&lt;/TIM&gt;
     &lt;TSC&gt;60000&lt;/TSC&gt;
     &lt;TSZ&gt;1001&lt;/TSZ&gt;
  &lt;/track&gt;
  &lt;/File&gt;
  </code></pre>
  
  <p>Html</p>
  
  <pre><code>&lt;span class="meta-label"&gt;  &lt;?php echo $database['XML'] ?&gt; &lt;/span&gt; &lt;span class="meta-content"&gt;Content&lt;/span&gt;&lt;/li&gt;
  </code></pre>
  
  <p>Edit:
  This is a much more specific question than how to parse data, the other topic explains everything but it is not required to know all about XML to do some simple filtering. For people just looking on this specific question leaving it open would be better</p>