Chapter 3. Working with XML, JSON, and JSONP

"Twitter is a succinct concept so its API is small and compact. That makes it very approachable by a broad range of developers. A weekend hobbyist can easily tinker around with it and have something up and running in a few hours while a professional can use the API's simplicity as a building block to create interesting variations and extensions of the service."

Lee Brenner, blu

In this chapter you get productive using multiple methods in .NET for parsing XML and JSON responses from the Twitter API. Depending on your project and environment, you may need to choose one of these methods over another. You also learn how to utilize Twitter's support for JSONP callbacks on the client-side, enabling interesting read-access scenarios for Twitter widgets in both Silverlight and JQuery. The ability to move data from Twitter API's representative formats to class instances you built in Chapter 2 will help you get your applications up and running quickly and in familiar territory.

Working with XML Responses

XML is a ubiquitous language for web communication. Following that reputation, there are many ways to consume XML data supported by the .NET Framework. You may have a preference for the method you choose, but the end result is always the same, taking the representational XML retrieved from Twitter and converting into convenience classes you can use to program your applications against.

Using LINQ to XMLb

LINQ to XML was introduced with C# 3.0 and the ...

Get Professional Twitter® Development With Examples in .NET 3.5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.