Geeks With Blogs
Developers Friendly November 2013 Entries
Reading XML using LINQ
Here i have tried to give a simple example of how to read XML file using LINQ query.Ex: Below is the sample structure of XML file. Say file name would be EMailTemplates.xmlIn order to get the value of <ResetPassword> node using LINQ, we can write something like below,With the above LINQ query "element" will have value something like below,<ResetPassword> Sample Text </ResetPassword>Later, based on need it can be modified. If only "Sample Text" is needed then chop of start and end ......

Posted On Saturday, November 23, 2013 2:26 AM

Copyright © Manjunath K | Powered by: GeeksWithBlogs.net