PHP - XML

Snippet

Pretting Printing / Formatting

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

Powered by ComboStrap