I have an xml file containing basic information about products, with the following structure:
- products
- Id
- Price
- ManufacturerId
And another one, containing data about manufacturers:
- manufacturers
- Id
- Name
I'd like to get the top 3 manufacturers with the most products (manufacturer name and number of products) from the products.xml file using LINQ.
Edit: the products.xml file looks like this:
<products>
<row Id="1" Price="1.00" ManufacturerId="3"/>
<row Id="1" Price="0.99" ManufacturerId="2"/>
</products>
The fields are attributes for both the products and manufacturers files.