- Home /
How to load XML on Android
Hi, I've been following the wiki tutorial for loading data from an XML file. However, I can't get the XML to load in Android.
I've place my XML files at the root of Assets, then Assets/Xml, then Assets/Resources. I've tried many different paths, but none worked.
string pathPrefix = Path.Combine(Application.persistentDataPath, "location.xml");
string pathPrefix = Path.Combine(Application.dataPath, "location.xml");
string pathPrefix = Path.Combine(Application.persistentDataPath, "Xml/location.xml");
string path = Application.persistentDataPath + "/Xml/location.xml";
string path = "/data/data/com.company.game/files/location.xml";
Please help. Thank you.
Your answer
Follow this Question
Related Questions
Save and Load data from Local XML file won't work 1 Answer
ArgumentException: Path is empty while saving data in an XML 0 Answers
Load from Xml on Iphone and Android 2 Answers
Loading Xml file issues 0 Answers