title: converting XML file into HTML file
body: <p>I have an XML file and i want to print the data as html which contains multiple tags. I have looped the file using foreach but it only prints the tags of the XML file. The text inside the tags are not printing.</p>
  
  <p>This is my XML file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Jobs&gt;
      &lt;APPLICATION&gt;
          &lt;ACTION&gt;&lt;![CDATA[MODIFY]]&gt;&lt;/ACTION&gt;
          &lt;JOBID&gt;&lt;![CDATA[21494017]]&gt;&lt;/JOBID&gt;
          &lt;JOBTITLE&gt;&lt;![CDATA[dummy MNC&amp;amp;#x27;S of Pune.]]&gt;&lt;/JOBTITLE&gt;
          &lt;JobDescription&gt;&lt;![CDATA[dummy]]&gt;&lt;/JobDescription&gt;  
          &lt;KEYSKILLS&gt;&lt;![CDATA[dummy]]&gt;&lt;/KEYSKILLS&gt;
          &lt;SUMMARY&gt;&lt;![CDATA[dummy]]&gt;&lt;/SUMMARY&gt;
  
      &lt;/APPLICATION&gt;
      &lt;APPLICATION&gt;
          &lt;ACTION&gt;&lt;![CDATA[MODIFY]]&gt;&lt;/ACTION&gt;
          &lt;JOBID&gt;&lt;![CDATA[21494017]]&gt;&lt;/JOBID&gt;
          &lt;JOBTITLE&gt;&lt;![CDATA[dummy MNC&amp;amp;#x27;S of Pune.]]&gt;&lt;/JOBTITLE&gt;
          &lt;JobDescription&gt;&lt;![CDATA[dummy]]&gt;&lt;/JobDescription&gt;  
          &lt;KEYSKILLS&gt;&lt;![CDATA[dummy]]&gt;&lt;/KEYSKILLS&gt;
          &lt;SUMMARY&gt;&lt;![CDATA[dummy]]&gt;&lt;/SUMMARY&gt;
  
      &lt;/APPLICATION&gt;
      AND SO ON..........................................
  &lt;/Jobs&gt;
  </code></pre>
  
  <p>The issue i am facing is that when i loop it only print the tags like:</p>
  
  <pre><code> Jobs
   APPLICATION: 
   APPLICATION: 
   APPLICATION: 
   APPLICATION: 
   APPLICATION: 
  </code></pre>
  
  <p>Following is the code that i am using to print the XML file:</p>
  
  <pre><code> $xml=simplexml_load_file("fli.xml");
   echo $xml-&gt;getName() . "&lt;br&gt;";
  
  foreach($xml-&gt;children() as $child)
  {
      echo $child-&gt;getName() . ": " . $child . "&lt;br&gt;";
  }
  </code></pre>
  
  <p>I am not able to print the data inside the <code>APPLICATION</code>. How do I do it?</p>