Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 14, 2012 01:34 AM by Decker Dong - MSFT
Member
2 Points
6 Posts
Apr 12, 2012 04:14 PM|LINK
hello.
I've been trying to read a very simple XML file, but failing.
syntax of XML is:
<?xml version="1.0" encoding="utf-8"?> <ToDoList> <ToDo>sdf</ToDo> <ToDo>mdf</ToDo> </ToDoList>
i need to display "sdf" & "mdf" in drop down list... i do not want to use built in XmlDataSource. i need to do it manually.
please guide me on how to achieve this...
Apr 12, 2012 04:20 PM|LINK
never mind... resolved it myself...
code is:
XDocument xdoc = XDocument.Load(path); var todos = (from td in xdoc.Root.Elements() select new { ToDo = td.Value });
thnx.
All-Star
118619 Points
18779 Posts
Apr 14, 2012 01:34 AM|LINK
Congratuation!Welcome to your forum again to share us your nice solution and ideas……
Pirate11
Member
2 Points
6 Posts
how do I read simple xml ...
Apr 12, 2012 04:14 PM|LINK
hello.
I've been trying to read a very simple XML file, but failing.
syntax of XML is:
i need to display "sdf" & "mdf" in drop down list... i do not want to use built in XmlDataSource. i need to do it manually.
please guide me on how to achieve this...
(Vaya Infotech)
Pirate11
Member
2 Points
6 Posts
Re: how do I read simple xml ...
Apr 12, 2012 04:20 PM|LINK
never mind... resolved it myself...
code is:
XDocument xdoc = XDocument.Load(path); var todos = (from td in xdoc.Root.Elements() select new { ToDo = td.Value });thnx.
(Vaya Infotech)
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: how do I read simple xml ...
Apr 14, 2012 01:34 AM|LINK
Congratuation!Welcome to your forum again to share us your nice solution and ideas……