title: Why I do not see the content of the file in my browser?
body: <pre><code>&lt;?php 
  
  $content=file("xml.txt");
  echo '&lt;pre&gt;&lt;code&gt;';
  foreach($content as $val){
     echo $val;
   }
  echo '&lt;/code&gt;&lt;/pre&gt;';
  ?&gt;
  </code></pre>
  
  <p>This is the text file i am trying to read through that php code. This code is working fine with text but unfortunately not reading the code.
  The code below is the xml.txt file.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.constraint.ConstraintLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context="softs.hh.androidpermissions.MainActivity"&gt;
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="Hello World!"
          app:layout_constraintBottom_toBottomOf="parent"
          app:layout_constraintLeft_toLeftOf="parent"
          app:layout_constraintRight_toRightOf="parent"
          app:layout_constraintTop_toTopOf="parent" /&gt;
  
  &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>