Nodes FormatOutput - ThomasWeinert/FluentDOM GitHub Wiki
FluentDOM\Nodes formatOutput();
Triggers a formatting of the document. The XML/HTML will be reloaded.
$xml = <<<XML
<nodes><one/><two/><three/></nodes>
XML;
echo FluentDOM($xml)->formatOutput();
<?xml version="1.0"?>
<nodes>
<one/>
<two/>
<three/>
</nodes>