title: Displays an error as "XML Parsing Error: not well-formed
body: <p>I tried a xml document in localhost, but it shows error as "<strong>XML Parsing Error: not well-formed</strong>
  Location: <a href="http://localhost/xml/user.php" rel="nofollow">http://localhost/xml/user.php</a>
  ,  Line Number 4, Column 906:</p>
  
  <p>I searched for any errors in the structure of the xml file, such as a missing end-tags. but i couldn't find.</p>
  
  <p>But when I ran this xml file (without removing any element - original xml file) in the browser without php tags. it works well and shows the tree structure in the browser.</p>
  
  <p>my codes are as follows;</p>
  
  <pre><code>&lt;?php
  header("Content-type: text/xml");
  echo "&lt;?xml version='1.0' encoding='UTF-8'?&gt;";
  echo "&lt;xs:schema
  xmlns='http://www.google.com'
  xmlns:xs='http://www.google.com'
  xs:schemaLocation='http://www.google.com'&gt;";
  echo "    &lt;xs:user&gt;";
  echo "        &lt;xs:element1 name='username'&gt;";
  echo "            &lt;xs:simpleType&gt;";
  echo "                &lt;xs:restriction base='xs:string'&gt;";
  echo "                  &lt;xs:minLength value='5'/&gt;";
  echo "                  &lt;xs:maxLength value='12'/&gt;";
  echo "                  &lt;xs:pattern value='[a-zA-Z0-9]'/&gt;";
  echo "                  &lt;xs:whiteSpace value='collapse'/&gt;";
  echo "              &lt;/xs:restriction&gt;";
  echo "            &lt;/xs:simpleType&gt;";
  echo "      &lt;/xs:element1&gt;";
  echo "      &lt;xs:element2 name='password'&gt;";
  echo "          &lt;xs:simpleType&gt;";
  echo "              &lt;xs:restrictions base='xs:string'&gt;";
  echo "                  &lt;xs:pattern value='[a-zA-Z0-9]'/&gt;";
  echo "                  &lt;xs:minLength value='8'/&gt;";
  echo "              &lt;/xs:restrictions&gt;";
  echo "          &lt;/xs:simpleType&gt;";
  echo "      &lt;/xs:element2&gt;";
  echo "      &lt;xs:element3 name='fullname' type='xs:string'/&gt;";   
  echo "      &lt;xs:element4 name='initials'&gt;";
  echo "          &lt;xs:simpleType&gt;";
  echo "              &lt;xs:restrictions base='xs:string'&gt;";
  echo "                  &lt;xs:pattern value='[A-Z][A-Z][A-Z]'/&gt;";
  echo "                  &lt;xs:whiteSpace value='collapse'/&gt;";
  echo "              &lt;/xs:restrictions&gt;";
  echo "          &lt;/xs:simpleType&gt;";
  echo "      &lt;/xs:element4&gt;";
  echo "      &lt;xs:element5 name='gender'&gt;";
  echo "          &lt;xs:simpleType&gt;";
  echo "              &lt;xs:restrictions base='xs:string&gt;";
  echo "                  &lt;xs:pattern value='male|female'/&gt;";
  echo "              &lt;/xs:restrictions&gt;";
  echo "          &lt;/xs:simpleType&gt;";
  echo "      &lt;/xs:element5&gt;";            
  echo "  &lt;/xs:user&gt;";
  echo "&lt;/xs:schema&gt;";
  ?&gt;
  </code></pre>