Dec 28, 2009 at 8:50 AM
Edited Dec 28, 2009 at 12:06 PM
Im new to silverlight. the prblem im facing is that i have creata the new xml in app_data folder, now i want to retrieve from it. its a exact copy of the xml whose link is provided in the source code.
this is what i hve done. in
WebClient webClient = new WebClient();
HttpServerUtility Server = HttpContext.Current.Server;
//string xml = webClient.DownloadString("http://www.apple.com/trailers/home/xml/current.xml");
string xml = Server.MapPath(@"~\App_Data\\XMLFile1.xml");
context.Cache.Insert("movieXml", xml, null, DateTime.UtcNow.AddDays(1), TimeSpan.FromSeconds(0));
changed xml path to this path.
but im getting this exception "Data at the root level is invalid. Line 1, position 1."
this xml is in the corrent format.
I'll b very thnkful if someone help me out from this.