Kill XML-WhiteSpaces

  1. XML-Cleanup
        /**
         * Kill XML-WhiteSpaces
         */
        $xml = preg_replace('~\s*(<([^>]*)>[^<]*</\2>|<[^>]*>)\s*~','$1',$xml);