XML and web player

Long story short i assumed and it bit me in the ass

	XmlDocument _d = new XmlDocument();
	_d.Load(Application.dataPath + "/CharSheet.xml");
	XmlNodeList _tp = _d.SelectNodes("/PCS/pc");
	foreach (XmlNode _t in _tp){
		PCS _a = new PCS(_t);
		pc.Add(_a);
	}

Currently that code looks for CharSheet.xml and reads it in loading the values present into a list of struct PCS named pc.

Works perfectly except i have been testing in standalone and my target is web player.

I did it this way so different things could be added/deleted/edited post build easily. Now it seems like i will have to change this over to a www i was hoping that somebody on here has a better idea or an easier way of doing it than i am coming up with. Right now it looks like i will have to alot of rewrite to do.

Yup - WWW is your best bet. Remember - the web player executes on the player’s local machine so it’s not aware of anything you’ve stored on your host’s server. (As a side note - even on desktop you could have used WWW to load the XML file)