Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
Easy and best way to parse xml file? note the file is too large
May 17, 2011
hi all, i have a large xml file and i want to parse this file but the file parsing should be quick.
The code should be in c#
Please help me..
Posted Date: May 17, 2011 Points: 40
Use the code below
string path = Server.MapPath("Your.xml");
XDocument xmlDoc = XDocument.Load(path);
var xmldata= from c in xmlDoc.Descendants("xx")
foreach (var c in xmldata)
string x1 = xx.x1;
string x2 = xx.x2;
string x3 = xx.x3;
Hope it helps.
Posted Date: May 18, 2011 Points: 20
To post reply
Related Questions Related Questions
which tag is easy to use to develop the aspx file? div or table tag
How to write to a text file in C#
How to copy a file from server to local system
Any alternative to using web.config file
upload image file in windows application
How to create .exe file
SWF file problem
bind xml file data into datatable
How to Upload One file and store in one Folder in C# with Windows...
Read XML File into DataGridview
Latest Forum Questions From The Same Category
To Achieve draw wave form from speaker outputs.
How to display the text in the second ck editor with strikes while extracting from database
Mail is working but I want send two excel file to each different person
how to display child nodes with headers and keeping the child nodes in a table
In DataGrid I have Two Dropdownlist, One in Header template and Item Template
Display data directly from database table to PDF using stored procedures in asp.net C#
How to install and use Dev Express ?
Dialogbox Custom Control
Custom Control in Winforms
I just started learning c#.net console application
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend