I remember having used the name() function successfully, but I can't seem to be able to get it to work now... Maybe a bug ?
edit: Okay, I think I know why I can't get it to work anymore. I'm currently using Firefox for my test, and there's a workaround for some Firefox related problem implemented in the XML plugin. Strangely, the workaround isn't needed when using the name() function. Testing with IE fails too, although I don't know why... Chrome and NW.js works like a charm!