In this recipe, we will be creating a .NET Core console application to use the library created in the previous recipe. You can try this recipe on any platform, such as Linux or macOS, since .NET Core is a cross-platform library. In this recipe, we will be focusing on Windows.
Let's get ready by looking at the previously built .NET Standard 2.0 library that reads an XML file. Make sure you have this XML file created under your project. We will be using this file to read. This sample is from the MSDN library itself:
<?xmlversion="1.0"?><catalog><bookid="bk101"><author>Gambardella, Matthew</author><title>XML Developer's Guide</title><genre>Computer</genre><price>44.95</price><publish_date>2000-10-01</publish_date><description>An in-depth look at creating applications with XML.</description></book><bookid="bk102">...