SyntaxFix
Write A Post
Hire A Developer
Questions
<?php $xml = $argv[1]; $dom = new DOMDocument(); // Initial block (must before load xml string) $dom->preserveWhiteSpace = false; $dom->formatOutput = true; // End initial block $dom->loadXML($xml); $out = $dom->saveXML(); print_R($out);