fr3dr1k on November 2nd, 2009

I have come across two ways querying XElements or XAttributes: Make an object IEnumerable and loop through the results Use the Single() method to return a single object only Typically you may have a situation where you write some Linq-to-XML like this: IEnumerable attrib = from att in elemInner.Attributes() where (string)att.Name.ToString() == “sectionName” select att; [...]

  • Share/Bookmark

Continue reading about Getting a single XAttribute or XElement

So today I started reading about the Bing API and I got myself an API key and I read through the basic instruction manual, which tells you how to get search results from the web through the Bing REST service. Its pretty straight forward, just get your own key though! But here is some sample [...]

  • Share/Bookmark

Continue reading about Getting search results from Bing REST service and using LINQ to process results

fr3dr1k on October 17th, 2009

I am in the process of developing some code for easily updating my CV, and one of the technologies I am using for this purpose is Linq to XML. As I have said previously on this blog, Linq to XML is an in-memory XML manipulation technology which allows you to manipulate XML as if you [...]

  • Share/Bookmark

Continue reading about Enumerating through an XML document

fr3dr1k on October 5th, 2009

So I forced myself last night to spend time learning LINQ to XML, both from a technical perspective and a theoretical perspective. My aim is to not only know what LINQ to XML is but also to understand why and how. My goal for the next six months is to not skim over source code, [...]

  • Share/Bookmark

Continue reading about Growing into Learning LINQ to XML

Get Adobe Flash playerPlugin by wpburn.com wordpress themes