Parsing external XML file with C#, what's the most aesthetic way?

Posted by Itay on Stack Overflow See other posts from Stack Overflow or by Itay
Published on 2010-03-30T22:18:29Z Indexed on 2010/03/30 22:33 UTC
Read the original article Hit count: 279

Filed under:
|
|

Hi,

say there is an xml file, which not created by me, with a known schema (for example, rss).

how would you parse it with C#? would you do that manually by XDocument etc, or would you use XMLSerializer and create a correspond class? or would you use Visual Studio tools to generate classes using a dtd file (that you'll write).

what do you think the most aesthetic, easy, not error-prone way?

© Stack Overflow or respective owner

Related posts about c#

Related posts about Xml