From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.1.2 PHP Bug Type: DOM XML related Bug description: xmllint for dump_mem
Would it be possible to add an optional parameter to dump_mem (and family) to pass the tree through xmllint --format?? Since you are already using the libxml2 functions, it seems only natural to apply this one. After weeks of fighting with keeping the whitespace correct in an xml document after moving, manipulating and adding elements, I found it is just easiest to start from the top and reformat then to try to play in the whitespace sandbox. Daniel Veillard's xmllint functions are super fast and hardly hurt performance, especially when you have to show your boss the xml file after it get's torn to shreds. -- Edit bug report at http://bugs.php.net/?id=15950&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=15950&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=15950&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=15950&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=15950&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=15950&r=support Expected behavior: http://bugs.php.net/fix.php?id=15950&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=15950&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=15950&r=submittedtwice
