path of xml file

i have saved a xml in Resources folder.

string filepath = Application.dataPath + "/Resources/gamexmldata.xml";
  xmlDoc = new XmlDocument();

and saved datas into it.

I can access data from that in system.

But not in Android.

How can i access it in android?

Given your earlier question I’m thinking perhaps you are trying to load it with Resources.Load - that doesn’t work for files that you’ve written actually on the device (Resources are compiled into the distributable).

If you want to load a file at runtime you need to use System.IO

    using System.IO;

    var myXml = File.ReadAllText(Application.dataPath + "whatever/path");

See this: File.ReadAllText Method (System.IO) | Microsoft Learn