Hi, please try it now. note that I added the function object to the project
Also it might be better to restructure your xml
<correct>paris</correct>
<answer="lyon">Lyon</answer>
<answer="marseille">Marseille</answer>
<answer="paris">Paris</answer>
Then it is more reliable to compare the string rather than indexes as all the nodes don't have unique identifiers.
Then you can check answer with:
if (XML.StringValue("//question—//correct/text()") == "paris")
And try to use both ' and "... i don't think this is nested correctly: "/questions/question—"