I'm trying using ImportXML
with XPath code to get currency rate, but this code not working.
=IMPORTXML("https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml"; "/gesmes:Envelope/Cube/Cube/Cube[@currency='USD']@rate")
=REGEXEXTRACT(QUERY(
IMPORTDATA("https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml");
"where Col1 contains 'USD'"; 0); "rate='(.*)'")