title: large String gets truncated when writing to dom node php
body: <p>I use the following code to write values to an xml file in php.</p>
  
  <pre><code>if(isset($_POST['title']) &amp;&amp; isset($_POST['content'])){
      $news = new DOMDocument();
      $news-&gt;load('../files/news.xml');
  
      $parentNode = $news-&gt;getElementById('newsContainer');
      $newsNodes  = $news-&gt;getElementsByTagName('News');
  
      echo $_POST['content'];
  
      if($newsNodes-&gt;length &gt; 0){
          $newsItem = $news-&gt;createElement('News');
  
          $newsItemTitle = $news-&gt;createElement('Title');
          $newsItemTitle-&gt;nodeValue = $_POST['title'];
  
          $newsItemContent = $news-&gt;createElement('Content');
          $newsItemContent-&gt;nodeValue = $_POST['content']; //The value I assign here gets cut out
  
          $newsItem-&gt;appendChild($newsItemTitle);
          $newsItem-&gt;appendChild($newsItemContent);
          $news-&gt;documentElement-&gt;appendChild($newsItem);
  
          $result = $news-&gt;save('../files/news.xml');
  
          if($result == FALSE){
              echo 'false';
          }else{
              echo 'true';
          }
      }else{
          $newNewsContentNode = new DOMDocument();
  
          $newsContainer = $newNewsContentNode-&gt;createElement('NewsContainer');
          $newsItem = $newNewsContentNode-&gt;createElement('News');
  
          $newsItemTitle = $newNewsContentNode-&gt;createElement('Title');
          $newsItemTitle-&gt;nodeValue = $_POST['title'];
  
          $newsItemContent = $newNewsContentNode-&gt;createElement('Content');
          $newsItemContent-&gt;nodeValue = $_POST['content']; //The value I assign here gets cut out
  
          $newsItem-&gt;appendChild($newsItemTitle);
          $newsItem-&gt;appendChild($newsItemContent);
          $newsContainer-&gt;appendChild($newsItem);
  
          $newNewsContentNode-&gt;appendChild($newsContainer);
  
          $result = $newNewsContentNode-&gt;save('../files/news.xml');
  
          if($result == FALSE){
              echo 'false';
          }else{
              echo 'true';
          }
  
      }
  
  }
  </code></pre>
  
  <p>I save a string with 1065 characters in it but when I check the xml file the node contains only a part of the given string. I looked at the string which comes through the POST and it comes fine. What am I doing wrong here? </p>