Fixed bug
Merge pull request #128 from 28msec/fix-libxml-error-handling

Fixed error handling for libxml