restore libxml error handler state after clearing
Merge pull request #1 from mistic100/restore-libxml-errors

restore libxml error handler state after clearing