Log in or register to post comments

IsolatedStorageException with XML

August 10, 2011 - 3:40am #1

Hi,

I want to use XML file parsing as a part of initialization in my Android application. I have attached the CS parser script to the ARCamera of my scene. I have given relative path of the XML file in XmlReader.Create function and put the XML file in /Resources folder.

When I try to run the application on my phone, I get IsolatedStorageException.

I/Unity   ( 3412): IsolatedStorageException: Could not find a part of the path "
/data/app/com.qualcomm.QCARUnityPlayer-1.apk/Resources/solar_system.xml".

The code for opening the file is:
XmlReader reader = XmlReader.Create(Application.dataPath + "/Resources/solar_system.xml");

What should be the path of the XML exactly?

This being a mobile application, is it a good idea to use an XML at all in the first place? Alternatively, Should I put the XML contents as a string in the parser code instead of using a separate XML file?

Thanks,
Kranti

Log in or register to post comments