diff --git a/lib/Drupal/feeds_xpathparser/ParserBase.php b/lib/Drupal/feeds_xpathparser/ParserBase.php
index c7d5098fdbcaad59ae14d7feff331410a0b7a9a7..1cb8230a26744e31b25fa421a07fdc5b97d7815d 100644
--- a/lib/Drupal/feeds_xpathparser/ParserBase.php
+++ b/lib/Drupal/feeds_xpathparser/ParserBase.php
@@ -586,6 +586,7 @@ abstract class ParserBase extends FeedsParserBase implements FormInterface, Feed
    *   The previous value of use_errors.
    */
   protected function errorStart() {
+    libxml_clear_errors();
     return libxml_use_internal_errors(TRUE);
   }