There is an interesting idiom of LINQ to XML that makes it easy to write short, succinct code when creating one XML tree from another. Many folks are not aware of this idiom, but it is a useful and convenient trick. I documented this idiom in the LINQ to XML documentation, however, it is worthwhile to discuss in a blog post. This post describes this idiom in detail. As you probably know, one of the overloads of the XElement constructors is a params array, so that you can pass multiple child nodes
Read More...