PHP - XML

> Procedural Languages > Php

1 - Snippet

1.1 - Pretting Printing / Formatting

/* @var DOMDocument $document */
$document = new DOMDocument("1.0");
$document->preserveWhiteSpace = false;
$document->formatOutput = true;
$document->loadXML($xmlString);