It's throwing errors because that method cannot access cross domains. Is there any other method that I can use instead of this??? I do not want to use AJAX, as I am not familiar to that language.
Secondly, I tried doing to add the whole XML file as a variable but that did not work either
text = "<game><........></.......>............<......></......></game>";
Any help would be greatly appreciated.