Here is very nice solution, I am using it in my word game, very big dictionary, so for dialogs will be good too. emanueleferonato.com/2013/04/29/the-basics-of-an-html5-word-game/
This is very good solution. I tried many other even in native for Android Eclipse (Java) and I must say, it working faster and better. Depending on device, with thousands of words in dictionary, player must wait maybe 2-3 seconds only for loading whole dictionary, so try it.
This is not xml, just plain text. Can be .txt but work with any extension. xml maybe will work faster (loading) but with xml tags file will be much bigger.