This project is read-only.

How to fetch data from New XML

Dec 28, 2009 at 9:50 AM
Edited Dec 28, 2009 at 1:06 PM

Great application.

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("");
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.