| Author: chatanya agrawal 31 Dec 2008 | Member Level: Gold | Rating:  Points: 1 |
votes is not declared. Also can you put the actual error message that you are getting?
|
| Author: divya 31 Dec 2008 | Member Level: Gold | Rating:  Points: 2 |
Hi its correct ,try like this also // var votes = from vote in xmlDoc.Descendants("Vote"); //select new //{ //Name = vote.Element("Name").Value; //Vote = vote.Element("Choice").Value; //} //
|
| Author: Babu Akkandi 31 Dec 2008 | Member Level: Diamond | Rating:  Points: 2 |
Hi,
There is no error in your Comment.
Please Ensure the Followings,
1. Include the following Namespace in your Code
using System.Xml; using System.Xml.Linq;
2.Declare the Variable "votes"
Hope it Helps!
Thanks and Regards, Babu Akkandi Microsoft Technology
|
| Author: Chandra Mohan 31 Dec 2008 | Member Level: Bronze | Rating:  Points: 0 |
Looks like no errors. Is the code file saved? :)
|