<p>This is actually a bit of an issue with XML-based feeds. To Feed Me, both your node's are <code>link</code> nodes. They have different attributes for sure, but Feed Me doesn't identify nodes by their tag <em>and</em> attributes, so it'll look at all tags called <code>link</code> to get the image.</p>

<p>As you've stated, you'll be getting a bunch of errors due to this. Can you restructure your feed at all? The ideal method would be to rename one to <code>&lt;image&gt;</code> for instance.</p>

<p>Right now, there's no way to manually define field mapping, as its already complicated. You're more than welcome to submit a <a href="https://github.com/engram-design/FeedMe/issues" rel="nofollow noreferrer">feature request</a>.</p>

CC BY-SA 4.0
2021-01-07T16:43:28.797Z
I stumbled upon this thread and was wondering if it has been added in the meantime...will feed me now work with attributes? Or is there a work around? I have a similar issue as Brad has... Thanks a lot, Wouter
Wouter
CC BY-SA 3.0
2017-08-17T05:33:55.203Z
2017-08-17T05:33:55.203Z
crawf
<p>I'm fairly new to Craft so I could be missing out on some basics.</p>
<p>I need to import an events feed (xml) using the <a href="https://github.com/engram-design/FeedMe" rel="nofollow noreferrer">FeedMe</a> plugin. The feed has some Link tags.
Ex.</p>
<pre class="lang-html prettyprint-override"><code>&lt;link rel=&quot;sales&quot; type=&quot;text/html&quot; href=&quot;[LINK TO TICKETSHOP]&quot; /&gt;
&lt;link rel=&quot;image&quot; href=&quot;[LINK TO IMAGE]&quot; /&gt;
</code></pre>
<p>I've got an Asset field but I can't properly set the Feed Element. It only shows <code>&lt;link/@href&gt;</code> or <code>&lt;link/@type&gt;</code>. If I select @href then it goes though all the elements with @href and generates a lot of errors because some aren't assets.</p>
<p>I've tried <code>&lt;link/@rel=&quot;image&quot;&gt;</code> in the default value field but then it imports the same value for all the Events. So all the Entries end up with the same image.</p>
<p>Is there a way to manually define the Feed Element?</p>

<plugin-feedme>
Manually override feed element in settings using the FeedMe plugin
# Manually override feed element in settings using the FeedMe plugin

(Asked by: username_0 on 2017-07-10)

I'm fairly new to Craft so I could be missing out on some basics.
I need to import an events feed (xml) using the FeedMe plugin. The feed has some Link tags.
Ex.



I've got an Asset field but I can't properly set the Feed Element. It only shows  or . If I select @href then it goes though all the elements with @href and generates a lot of errors because some aren't assets.
I've tried  in the default value field but then it imports the same value for all the Events. So all the Entries end up with the same image.
Is there a way to manually define the Feed Element?

**Tags:** plugin-feedme

---

## 1 answers

### Answer by username_1 on 2017-08-17. Score: 1

This is actually a bit of an issue with XML-based feeds. To Feed Me, both your node's are `link` nodes. They have different attributes for sure, but Feed Me doesn't identify nodes by their tag *and* attributes, so it'll look at all tags called `link` to get the image.

As you've stated, you'll be getting a bunch of errors due to this. Can you restructure your feed at all? The ideal method would be to rename one to  for instance.

Right now, there's no way to manually define field mapping, as its already complicated. You're more than welcome to submit a [feature request](https://github.com/engram-design/FeedMe/issues).

> **Comments:**
> **username_2**: I stumbled upon this thread and was wondering if it has been added in the meantime...will feed me now work with attributes? Or is there a work around? I have a similar issue as Brad has... Thanks a lot, Wouter  

---

