Using feeds and xpath to import multiple images into a node I am using feeds to import a heavily customised wordpress site into drupal using xpath and a custom xml file. All is going well until I try to import multiple images into a node.

The image field is a multi value field (not multiple different image fields)

Only the first image is imported the rest are ignored.

When I have xpath debugging on it correctly shows multiple image URI's and their titles. 

Is there a way using feeds and xpath to import multiple images into a node?

This is an example of one item from the feed

&lt;root&gt;
    &lt;item&gt;
        &lt;wordpress_id&gt;85672&lt;/wordpress_id&gt;
        &lt;title&gt;.....&lt;/title&gt;
        &lt;content&gt;.....&lt;/content&gt;
        &lt;created&gt;2017-03-17 10:13:24&lt;/created&gt;
        &lt;custom_fields&gt;
            &lt;url type="Website"&gt;......&lt;/url&gt;
            &lt;url type="Website2"&gt;.....&lt;/url&gt;
        &lt;/custom_fields&gt;
        &lt;attachments&gt;
            &lt;images&gt;
                &lt;item&gt;
                    &lt;ID&gt;85671&lt;/ID&gt;
                    &lt;post_author&gt;0&lt;/post_author&gt;
                    &lt;post_date&gt;2017-03-08 18:00:00&lt;/post_date&gt;
                    &lt;post_title&gt;.....&lt;/post_title&gt;
                    &lt;uri&gt;.....&lt;/uri&gt;
                &lt;/item&gt;
                &lt;item&gt;
                    &lt;ID&gt;85671&lt;/ID&gt;
                    &lt;post_author&gt;0&lt;/post_author&gt;
                    &lt;post_date&gt;2017-03-08 18:00:00&lt;/post_date&gt;
                    &lt;post_title&gt;.....&lt;/post_title&gt;
                    &lt;uri&gt;......&lt;/uri&gt;
                &lt;/item&gt;
            &lt;/images&gt;
        &lt;/attachments&gt;
    &lt;/item&gt;   
&lt;/root&gt;


The post title and uri from the attachments are the two fields I am trying to map to the node image type 

for my xpath I am referencing them using...

image_title =&gt; attachments/images/item/post_title
image_source =&gt; attachments/images/item/uri


and in my mapping I am using...

image_title (image_title) =&gt; Image: Title (field_image:title)
image_source (image_source) =&gt;  Image: URI (field_image:uri)


in the  section I have no trouble mapping website and website2 to to a multi value link field so I am not sure why the image field should be any different. 

edit: added xml snippet and mappings and further explanation
The issue was resolved. 

Feeds importer was working correctly all along. The problem it seems was with the actual images themselves. I didn't realise, but the in some cases the source images where huge (in excess of 18Mb) It just co-incidentally happened that the large image was the second image for the node. Thus when the feeds importer failed. It actually looked like it worked but only managed to import the first image.

When I resized all the images and then re-imported them, it imported all the images correctly.

There is still an unresolved issue in that the import was failing silently. After a few tweaks import suddenly failed with server 500 errors. That's when the apache logs showed a memory allocation error. 

Once I saw that, I was able to determine the issue was related to the source images.

I guess the outcome of this is don't assume the problem is related to something you did.