XML loads in PC (editor) but not when I build and install on Android device

HI

here is my code:

var filepath : String = Application.dataPath+“/Resources/xml/gamescore.xml”;
var xmlData = new XmlDocument();
xmlData.Load(filepath);

this code is connected to a button when clicked this works on PC, other code (not inc. here) reads the xml and all is sweet

but absolutely nothing happens on android device (when button is tapped) other buttons work, it not a tapping issue!
there is just nothing!

I know (think I know) its to do with the paths, and/or permissions (I set the build to use write to external card).

I am using Unity free version, an I really hope that its not because the free version doesn’t allow this kind of thing, ie reading xml files,
I’ve not read otherwise.

any help at all on this would be super!

thanks so much community!

wildIkon

i worked it out

//TextAsset textAsset = (TextAsset) Resources.Load(“get_gamenames”, typeof(TextAsset)); do not use this line

textXML = Resources.Load(“xml/get_gamenames”, TextAsset);
var xmlData = new XmlDocument();
xmlData.LoadXml ( textXML.text );

var root:XmlNode=xmlData.DocumentElement;
nodeList = root.SelectNodes( “games” );

nodeList = nodeList[0].ChildNodes;
//Debug.Log( nodeList.Count );

// loop through each of MyObjects
for ( var i : int = 0; i < nodeList.Count; i ++ )
{
Debug.Log( nodeList*.Attributes[“nm”].Value );*
gameNames_=nodeList*.Attributes[“nm”].Value;*_

* }*
the line TextAsset textAsset = (TextAsset) Resources.Load(“get_gamenames”, typeof(TextAsset)); cannot be used in the reality that I am in
so use the line below it if you are in the same one as me (ie that line wont even let the editor play)
I worked this out myself and am not very happy with people who have also worked this out, but then DO NOT show others, shame on you all - you know who you are!
WildIkon