I have a script that perfectly generates objects from local xml file, now I want to port it in WebGL, but when I am trying to upload xml from server local host doesn't response. The script that I use for reading xml file from URL:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Stream receiveStream = response.GetResponseStream();
XDocument xdoc = XDocument.Load(receiveStream);
receiveStream.Close();
Is there any way to load xml file in Unity for reading data and dynamic objects generation?