how do I read simple xml ...http://forums.asp.net/t/1792250.aspx/1?how+do+I+read+simple+xml+Sat, 14 Apr 2012 01:34:59 -040017922504929573http://forums.asp.net/p/1792250/4929573.aspx/1?how+do+I+read+simple+xml+how do I read simple xml ... <p>hello.</p> <p>I've been trying to read a very simple XML file, but failing.</p> <p>syntax of XML is:</p> <pre class="prettyprint">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;ToDoList&gt; &lt;ToDo&gt;sdf&lt;/ToDo&gt; &lt;ToDo&gt;mdf&lt;/ToDo&gt; &lt;/ToDoList&gt;</pre> <p>i need to display &nbsp;&quot;sdf&quot; &amp; &quot;mdf&quot; in drop down list... i do not want to use built in XmlDataSource. i need to do it manually.</p> <p>please guide me on how to achieve this...</p> 2012-04-12T16:14:41-04:004929582http://forums.asp.net/p/1792250/4929582.aspx/1?Re+how+do+I+read+simple+xml+Re: how do I read simple xml ... <p>never mind... resolved it myself...</p> <p>code is:</p> <pre class="prettyprint">XDocument xdoc = XDocument.Load(path); var todos = (from td in xdoc.Root.Elements() select new { ToDo = td.Value });</pre> <p>thnx.<br> <br> </p> 2012-04-12T16:20:34-04:004931931http://forums.asp.net/p/1792250/4931931.aspx/1?Re+how+do+I+read+simple+xml+Re: how do I read simple xml ... <p>CongratuationWelcome to your forum again to share us your nice solution and ideas</p> 2012-04-14T01:34:59-04:00