Skip to content
Thomas Weinert edited this page Jul 30, 2014 · 1 revision

FluentDOM\Nodes::formatOutput()

FluentDOM\Nodes formatOutput();

Triggers a formatting of the document. The XML/HTML will be reloaded.

Usage

$xml = <<<XML
<nodes><one/><two/><three/></nodes>
XML;

echo FluentDOM($xml)->formatOutput();

Output

<?xml version="1.0"?>
<nodes>
  <one/>
  <two/>
  <three/>
</nodes>
Clone this wiki locally