LINQ to XML: creating complex anonymous type
问题 I've an xml file as follows: <ProductGroup> <Product id="4601A"> <name>Roses</name> <section>Floral</section> <price>46</price> <PopupImages> <PopupImage>img1.jpg</PopupImage> <PopupImage>img2.jpg</PopupImage> </PopupImages> <ImageThumbs> <thumb>img1-thm.jpg</thumb> <thumb>img2-thm.jpg</thumb> </ImageThumbs> </Product> </ProductGroup> In production the ProductGroup node might contain many Product nodes. For this I kind of want to build a list of an anonymous object that has the following