title: using linq to xml in silverlight?
body: <p>I did implement a web application(asp.net,c#) where it has couple of pages .Each page has the ability to read the values from an xml file and passes into couple of text boxes in each page.User has the ability to edit the values and save,which inturn saves the xml file.I did use the linq to xml .</p>
  
  <p>I have to move to the silverlight now.so i am trying to implement the same logic in a new silverlight project.I m trying to use the linq to xml in silverlight also.But some how i am unable to read the xml file which is not in the xap file.Here is my code</p>
  
  <pre><code> XDocument doc = Document.Load("C:\Data\Data.exe.config");
              var applicationSettings = (from x in doc.Descendants("applicationSettings")
                                         from kvpair in .Element("Data.Properties.Settings").Elements("setting")
                                         select new
                                         {
                                             Name = kvpair.Attribute("name").Value,
                                             Node = kvpair.Element("value")
                                         }).ToDictionary(x =&gt; x.Name, y =&gt; y);
  
              string Account  = applicationSettings["Account no"].Node.Value.ToString();
             txtAccountno.Text = AttendanceWindow;
              string Details=applicationSettings["Details"].Node.Value.ToString();
              txtDetails.Text = Details;
  </code></pre>