<p>You can’t use dot syntax because of the colon, try this instead</p>

<pre><code>{{ feed[0]['itunes:image']['@href'] }}
</code></pre>

CC BY-SA 3.0
2017-10-24T17:02:56.390Z
2017-10-24T17:02:56.390Z
carlcs
<p>I am trying to ingest an iTunes compatible RSS feed on the template with FeedMe... the enclosures have things like <code>&lt;itunes:description&gt;</code> in them. When I try and access these properties I get the following error:</p>

<pre><code>Unexpected token "punctuation" of value ":" ("end of print statement" expected).
</code></pre>

<p>Anyone know how I can access these enclosures without creating a Twig error?</p>

<p>Example current Twig code:</p>

<pre><code>{{ feed[0].itunes:image['@href'] }}
</code></pre>

<plugin-feedme><rss>
FeedMe error with iTunes RSS compatible feed
# FeedMe error with iTunes RSS compatible feed

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

I am trying to ingest an iTunes compatible RSS feed on the template with FeedMe... the enclosures have things like  in them. When I try and access these properties I get the following error:
Unexpected token "punctuation" of value ":" ("end of print statement" expected).

Anyone know how I can access these enclosures without creating a Twig error?
Example current Twig code:
{{ feed[0].itunes:image['@href'] }}

**Tags:** plugin-feedme, rss


---

## 1 answers

### Answer by username_1 on 2017-10-24. Score: 2 | Accepted answer

You can’t use dot syntax because of the colon, try this instead
{{ feed[0]['itunes:image']['@href'] }}


---

