C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » XML »

Parsing xml file using .net


Posted Date: 05 Oct 2009      Posted By: Developer      Member Level: Bronze     Points: 1   Responses: 3



which one is the best method to parse xml file in .net? 1.XmlTextReader
2. XmlDocument 3. XPathDocument 4. XmlSerializer 5. DataSet . What are the advantages and disadvantages for each method?





Responses

Author: Kritika Yadav    05 Oct 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

use this sample project, this could help you.

Join this campus group
http://www.dotnetspider.com/sites/637/-ecb-aspdotnet.aspx

Happy Programming
Kritika Yadav
Dot Net Help



paypal.rar
Author: Developer    05 Oct 2009Member Level: BronzeRating: 2 out of 52 out of 5     Points: 2

I didn't get you


Author: Anuraj    05 Oct 2009Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

It depends on the requirement and complexity of parsing.

1.XmlTextReader - Lightweight, complex
2. XmlDocument -Good, Can apply XPath query.
3. XPathDocument - Sorry I don;t know
4. XmlSerializer - Can we parse using XmlSerializer? it is for converting stream to object and Object to stream
5. DataSet - Easy, but not recommended.

Thanks
Anuraj
THIS POSTING IS PROVIDED "AS IS" WITH NO WARRANTIES, AND CONFERS NO RIGHTS.
BEWARE OF BUGS IN THE ABOVE CODE; I HAVE ONLY PROVED IT CORRECT, NOT TRIED IT.
dotnetthoghts



Post Reply
You must Sign In to post a response.
Next : Use xpath navigator to change the value of a xml attribute
Previous : C# code to create xml file to execute script from it
Return to Discussion Forum
Post New Message
Category: XML

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use