I'm setting up a way for a Drupal site to import data from third party sites using a PHP script that creates a XML structure.

I'm using the Feeds module, which otherwise works fine. But I miss something.

Now, I need to add a custom source from the feed that adds data to a field.

Like that I have a inside the XML that I want to be used for the nodes image_field. I need more then just a image, but as an example.

How do I do that?

Is there perhaps a way that will work so that I wont have to code it by myself?

PS. Since I've coded the script that creates the XML, I could easily change XML to about anything else that might work better. DS.

2 Answers 2


Feeds Xpath Parser module can help you map custom fields to your xml values. I've used this myself. There is also Querypath Parser which may do the same thing (I've never tried this one).

  • It's a great module. I am using it with no problems Sep 21, 2011 at 5:51

Both Feeds Xpath Parser and Querypath Parser modules are near end-of-life on Drupal 7. Going forward, use the XML (XPath) parser or the QueryPath XML parser from Feeds extensible parser module for Drupal 8 and 9.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.