import System.Xml;
myXmlReader = new XmlTextReader(“http://myserver/unityTest/test2.xml”);
I have been trying to load xml into unity to display in a GUI using javascript but i get the following error. What am I doing wrong?
NotSupportedException: http://myserver/unitytest/test2.xml
System.Net.WebRequest.GetCreator (System.String prefix)
System.Net.WebRequest.Create (System.Uri requestUri)
System.Xml.XmlUrlResolver.GetEntity (System.Uri absoluteUri, System.String role, System.Type ofObjectToReturn)
Mono.Xml2.XmlTextReader.GetStreamFromUrl (System.String url, System.String absoluteUriString)
Mono.Xml2.XmlTextReader…ctor (System.String url, System.Xml.XmlNameTable nt)
System.Xml.XmlTextReader…ctor (System.String url, System.Xml.XmlNameTable nt)
System.Xml.XmlTextReader…ctor (System.String url)
getCareerSector.getCareerInfo () (at C:\3D\unity\3DPlatformerTutorial\Assets\Scripts\data\getCareerSector.js:83)
getCareerSector.OnMouseDown () (at C:\3D\unity\3DPlatformerTutorial\Assets\Scripts\data\getCareerSector.js:14)
UnityEngine.GameObject:SendMessage(String, Object, SendMessageOptions)
UnityEngine.GameObject:SendMessage(String, Object, SendMessageOptions)
UnityEngine.MouseOverPair:SendMessage(String) (at C:\builds\unity-trunk\unity\Runtime\Export\MouseEvents.cs:17)
UnityEngine.SendMouseEvents:smile:oSendMouseEvents() (at C:\builds\unity-trunk\unity\Runtime\Export\MouseEvents.cs:118)