See stack overflow for details: https://stackoverflow.com/a/9281963/893222 The idea is to handle malformed XML thanks to [recovery option in libxml](http://www.php.net/manual/en/class.domdocument.php#domdocument.props.recover) that is implemented in userland: ```php $dom = new DOMDocument(); $dom->recover = TRUE; ```
See stack overflow for details: https://stackoverflow.com/a/9281963/893222
The idea is to handle malformed XML thanks to recovery option in libxml that is implemented in userland: