Introduction to LINQ - Simple XML Parsing
Every programmer has had to parse an XML file. If you’re trying to tell me you haven’t, then you’re lying and you just don’t remember it. You probably shouldn’t even call yourself a programmer.
If you don’t remember the history of reading an XML document, here’s the Cliffs Notes version. In the beginning there was line-by-line parsing. It was hard, error prone, and usually sucked. After a little while of this, light starting shining onto our dark corner of the world. .NET introduced the XmlTextReader class, and things were good - for a while. And then, as if Microsoft heard the prayers of a million programmers, LINQ was integrated into .NET 3.0 and again, things are good.
Read More »
If you don’t remember the history of reading an XML document, here’s the Cliffs Notes version. In the beginning there was line-by-line parsing. It was hard, error prone, and usually sucked. After a little while of this, light starting shining onto our dark corner of the world. .NET introduced the XmlTextReader class, and things were good - for a while. And then, as if Microsoft heard the prayers of a million programmers, LINQ was integrated into .NET 3.0 and again, things are good.
Posted in LINQ, C#, All Tutorials | 4 Comments »
