Do you have a question? Post it now! No Registration Necessary. Now with pictures!
May 17, 2008, 12:46 am
rate this thread
$xml = new DOMDocument();
$xml->preserveWhiteSpace = true;
$node = $xml->documentElement->getElementsByTagName('body')->item(0);
Any ideas as to why that doesn't preserve the whitespace? When I
change saveHTML to saveXML, it works just fine...