Reading XElement from XML file
-
Hi All, I have one Xml file in a folder, then my fucntion has to read the file and return the XElement object. It would be greatfull if anybody can help me in this. Any code snippet or link will be very much helpfull. Thanks a Lot, Md Abdul Aleem.
Thanks & Regards, Md. Abdul Aleem NIIT technologies
-
Hi All, I have one Xml file in a folder, then my fucntion has to read the file and return the XElement object. It would be greatfull if anybody can help me in this. Any code snippet or link will be very much helpfull. Thanks a Lot, Md Abdul Aleem.
Thanks & Regards, Md. Abdul Aleem NIIT technologies
-
Hi All, I have one Xml file in a folder, then my fucntion has to read the file and return the XElement object. It would be greatfull if anybody can help me in this. Any code snippet or link will be very much helpfull. Thanks a Lot, Md Abdul Aleem.
Thanks & Regards, Md. Abdul Aleem NIIT technologies
suppose you have an xml file like this Abstract... Abstract... Use XElement.Load(@"yourfilepath"); After you read, you will get the element structure like this: Abstract... Abstract... You can also make use of XDocument xdoc = XDocument.Load("your path"); if you need comments and declarations ... Abhishek Sur My Latest Articles Basics on LINQ and Lambda Expressions Create .NET Templates
modified on Wednesday, March 4, 2009 6:30 AM