I have an xml like that:
<item>
<domain>
<currentPrice currency="EUR">17.9</currentPrice>
</domain>
</item>
I can render the value of 17.9 in Twig using
item.domain.currentPrice
But how can I access the attribute "currency" to render it?
item.domain.currentPrice['currency']
is not working. Then I'm getting:
Key "curreny" in object (with ArrayAccess) of type "SimpleXMLElement" does not exist
Who can help me?