Don't miss out Virtual Happy Hour this Friday (April 26).
Try our conversational search powered by Generative AI!
AI OnAI Off
Don't miss out Virtual Happy Hour this Friday (April 26).
Hi
Try Translate("/countryselector/country[@name=\"UnitedStates\"]/text");
Regards
Per Gunsarfs
EPiServer Development Team
Normally, when you need to retrieve values from relatePlusEN.xml, you use Translate
string value = Translate("/login/currentuser");
But what if I have this entry:
How can I get the text value for the UnitedStates country?
I tried Translate("/countryselector/country name=\"UnitedStates\"/text"); but it didn't work. It just returned missing value.