HI I'm not sure if the issue is with FIG or XPath XML Parser - I've posted this same issue on the XPath XML Parser forum http://drupal.org/node/1874026.

If I use the Feeds RSS parser I am able to use http://drupal.org/project/feeds_imagegrabber to download images from the RSS Description field. Hover if I switch to Feeds XPath XML Parser - which I need in order to download files in enclosures - Feeds Image Grabber no longer downloads images from the Body field.

Does anyone know how XPath XML Parser may be interfering with feeds_imagegrabber? Are there any test i could do to figure out what is interfering with what?

The error message I get back is

Invalid enclosure http://sitename.com/sites/default/files/images/donate.png

However http://sitename.com/sites/default/files/images/donate.png is the correct address for the original image.

thank you for this module - when I used it with RSS it worked great. The problem is I need to parse a huge custom XML doc, so can't use RSS.

Comments

rooby’s picture

Status: Active » Postponed (maintainer needs more info)

I notice there is a patch in #1874026: Add feed URL as mapping source..
Does that look like solving the problem?

ibapi’s picture

No, still doesnt working with XPath XML Parser, this is really huge problem.

rooby’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Active

Status back to active based on last reply.

benjaminbradley’s picture

I'm trying out this combination (Feeds XPath XML Parser with Feeds Imagegrabber) and it looks like the Imagegrabber module doesn't recognize the xpathparser source type at all. When I add the mapping to my feeds import with a FIG field as the destination, the source is listed as "XPath Expression" instead of "xpathparser:N" (where N is the integer index) and the new field mapping never appears in the XPath XML parser settings where one would normally enter the XPath expression for the source field value.

STNyborg’s picture

It would really be nice if this little module would be able to sniff out the image tags in my XML feeds. Has anyone found a solution for this?

sawabe’s picture

Feeds + FeedsEx (XML Xpath Parser) + TAMPER + FIG

feeds_imagegrabber.module
function feeds_imagegrabber_feeds_set_target($source, $entity, $target, $page_url) {

$page_url is actually an array, but processed like a string for both stable and dev versions. Worked for me if add smth like this from the beginning of the function:

// if $page_url is array
  if (is_array($page_url) && count($page_url) == 1) {
    $page_url = $page_url[0];
  }