title: Avoid cutting markup elements within xml nodes using PHP
body: <p>I want to parse a DocBook XML file with PHP. SimpleXMLElement cuts off some markup elements.</p>
  
  <pre><code>&lt;section&gt;
  &lt;title&gt;SUSPEND&lt;/title&gt;
      &lt;para&gt;The &lt;database&gt;SUSPEND&lt;/database&gt; command &lt;quote&gt;breaks&lt;/quote&gt; the atomicity of the block in which it is located.&lt;/para&gt;
      &lt;para&gt;...&lt;/para&gt;
  &lt;/section&gt;
  </code></pre>
  
  <p>I use this code to parse my para elements:</p>
  
  <pre><code>$paras = $xml-&gt;xpath("//*[starts-with(local-name(), 'para')]");
  foreach($paras as $para) {
     echo $para[0];
  }
  </code></pre>
  
  <p>This cuts off my markup </p>
  
  <pre><code>&lt;database&gt;SUSPEND&lt;/database&gt; and &lt;quote&gt;breaks&lt;/quote&gt;
  </code></pre>
  
  <p>resulting in</p>
  
  <pre><code>The command the atomicity of the block in which it is located.
  </code></pre>
  
  <p>But what I need is:</p>
  
  <pre><code>The &lt;database&gt;SUSPEND&lt;/database&gt; command &lt;quote&gt;breaks&lt;/quote&gt; the atomicity of the block in which it is located.
  </code></pre>
  
  <p>So how can I get the whole node including its elements as string?</p>