本日のPHPワンライナー:XML文書の整形(インデント)
どうでもいいネタ。
% php -r '$d=DOMDocument::load("./unformatted.xml");$d->formatOutput=true;$d->save("./formatted.xml");'
どうでもいいネタ。
% php -r '$d=DOMDocument::load("./unformatted.xml");$d->formatOutput=true;$d->save("./formatted.xml");'