Index: FeedsQueryPathParser.inc
===================================================================
--- FeedsQueryPathParser.inc    (revision 2218)
+++ FeedsQueryPathParser.inc    (working copy)
@@ -16,7 +16,7 @@
   /**
    * Implementation of FeedsParser::parse().
    */
-  public function parse(FeedsImportBatch $batch, FeedsSource $source) {
+  public function parse(FeedsSource $source, FeedsFetcherResult $fetcher_result) {
     $this->source_config = $source->getConfigFor($this);

     if (isset($this->source_config['rawXML']) && is_array($this->source_config['rawXML'])) {
@@ -38,10 +38,12 @@
         $this->mappings[$mapping['source']] = $mapping['target'];
       }
     }
+
+    $parserresult = new FeedsParserResult();

-    $batch->setTitle(trim(qp($batch->getRaw(), 'title')->text()));
+    $parserresult->title = trim(qp($fetcher_result->getRaw(), 'title')->text());

-    $context = qp($batch->getRaw(), $this->source_config['context']);
+    $context = qp($fetcher_result->getRaw(), $this->source_config['context']);

     foreach ($context as $child) {
       $parsed_item = $variables = array();
@@ -53,8 +55,9 @@
         }
         $parsed_item[$source] = $result;
       }
-      $batch->addItem($parsed_item);
+      $parserresult->items[] = $parsed_item;
     }
+    return $parserresult;
   }
