Score:0

How to import unknown number of images with drupal feeds from xml file?

bl flag

I am trying to import a gallery of images for a specific content type. The XML file looks like this:

 <img1>
 https://xml.....
 </img1>
 <img2>
 https://xml.....
 </img2>
 <img3>
 https://xml.....
 </img3>
 <img4>
 https://xml.....
 </img4>
 <img5>
 https://xml.....
 </img5>

The node has a different and unknown number of images. I'm using QueryPath's XML parser to import the contents to the node, but I don't know how to import all the images. Some nodes have up to 50 images.

id flag
Welcome to Drupal Answers! I don't understand specifically what you are asking or where it is that you are stuck.
Dodoto avatar
bl flag
When I mapping for a QueryPath XML source value, I use "img1" and parser imports image 1, but I don't know how many images they are for creating an exact number mappings.
Dodoto avatar
bl flag
I mean that the different nodes that need to be imported have different number of images and it's not clear where I should go with the mapping. The last can be img5 or img55.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.