I was recently asked to create an ASP.NET 2.0 web site that consumed an OData (WCF Data Services) data feed. Of course, in .NET 4.0, this would have been easy given the great tool that Microsoft has provided for us in the WCF Data Services Client (System.Data.Services.Client). However, in .NET 2.0, this presented somewhat of a challenge.
For all the examples in this blog, I’m using Chris Woodruff’s baseballs stats feed located at http://baseball-stats.info/OData/baseballstats.svc/.
I decided to write my own simple OData ATOM/XML parser. But first, I wanted some classes to hold. Ideally, I wanted classes that ...