My LINQ Demo: A simple windows console application

My LINQ Demo

Windows Console Application

A simple windows console application that demonstrates some very complex LINQ (Language-Integrated Query) code where you can query an XML file (as an embedded resource) at the parent level and descendant nodes and their attributes to display the output to the console. The program also allows you to read the entire XML file on the console screen as a reference. The sample XML is a listing of approximately 100+ food items and their nutrient compositions from the USDA Food Composition Databases.

Comments: I chose the USDA Food Composition Databases as an XML data source and only a tiny percentage of the database for this project. You can download the data to XML or consume through Web API (see WEB API for project examples). This code may help you in your XML LINQ coding challenges as a reference.

Database Data

project XML File downloaded from USDA Food Composition Databases

Demo

Solution Code

You can view and download the GitHub repository here.

Kathleen has 15 yrs. of experience analyzing business IT needs and engineering solutions in payments, electric utilities, pharmaceutical, financial, virtual reality, and internet industries with a variety of technologies. Kathleen's project experience has been diverse ranging from executing the business analysis “design phase” to hands-on development, implementation, and testing of the IT solutions. Kathleen and her husband reside in Indiana with no children, instead living along with their fur babies.