You can read the xml like this and store objects of class Album in a generic list.

List<Album> albums = new List<Album>();
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load("MyXml.xml");
XmlElement root = doc.DocumentElement;
XmlNodeList nodes = root.SelectNodes("/album"); 
foreach (XmlNode node in nodes)
{   
    Album album = new Album();
    album.id = node["id"].InnerText;
    albums.Add(album);
}

Here's how to search the list search-for-object-in-generic-list

Here's how to sort the list How to sort a generic List

Answer from Phaedrus on Stack Overflow
🌐
Microsoft Learn
learn.microsoft.com › en-us › dotnet › standard › linq › sample-xml-file-multiple-purchase-orders
Sample XML file: Multiple purchase orders - LINQ to XML - .NET | Microsoft Learn
This file contains several purchase orders. <?xml version="1.0"?> <PurchaseOrders> <PurchaseOrder PurchaseOrderNumber="99503" OrderDate="1999-10-20"> <Address Type="Shipping"> <Name>Ellen Adams</Name> <Street>123 Maple Street</Street> <City>Mill ...
🌐
Appsloveworld
appsloveworld.com › download-free-sample-xml-file-with-multiple-records
Download Free Sample Xml File With Multiple Records
you have come to the right place , Appsloveworld allows programmers, testers, developers to download a sample XML file with multiple records, an XML file with a multilevel hierarchy structure.
🌐
Learning Container
learningcontainer.com › home › 4 new sample xml file
4 New Sample XML File - Learning Container
July 15, 2024 - Here, You can get a large XML file, many records, and multiple data. That will help when you need to test for large data. 1 file(s) 1.68 KB · Download · Sample XML URL – https://www.learningcontainer.com/wp-content/uploads/2020/03/Sample-XML-With-Multiple-Records.xml ·
🌐
Salesforce Developers
developer.salesforce.com › docs › atlas.en-us.api_asynch.meta › api_asynch › datafiles_xml_sample_file.htm
Sample XML File | Bulk API 2.0 and Bulk API Developer Guide | Salesforce Developers
This XML sample includes two records for the Account object. Each record contains three fields. You can include any field for an object that you're processing. If you use this file to update existing accounts, any fields that aren't defined in the XML file are ignored during the update.
🌐
Adobe
opensource.adobe.com › Spry › samples › data_region › NestedXMLDataSample.html
Nested XML Data Sample
In this example, we set up a parent data set that has 2 nested data sets that load data from different parts of the XML underneath the nodes selected by the parent's XPath. Notice in the sample code below that we now include an extra JS file called SpryNestedXMLDataSet.js:
🌐
Stack Overflow
stackoverflow.com › questions › 53587467 › how-to-create-multiple-xml-records-from-a-simple-xml
groovy - How to create multiple XML records from a simple XML - Stack Overflow
<?xml version="1.0" encoding="UTF-8"?> <Recrods> <recrod> <EmpID>12345</EmpID> <FieldName>address1</FieldName> <FieldValue>9870 Fox Drive</FieldValue> </record> <recrod> <EmpID>12345</EmpID> <FieldName>address2</FieldName> <FieldValue>Apt 30099</FieldValue> </record> <recrod> <EmpID>12345</EmpID> <FieldName>city</FieldName> <FieldValue>Michigan</FieldValue> </record> <recrod> <EmpID>12345</EmpID> <FieldName>country</FieldName> <FieldValue>USA</FieldValue> </record> </Recrods>
🌐
Spiceworks
community.spiceworks.com › hardware & infrastructure › storage & san
How to generate xml file with multiple records - Storage & SAN - Spiceworks Community
May 10, 2007 - Dear All, I am facing a simple problem. I have 3 relational tables.After joining, got suppose 10 records.But when i am generating target(Target:XML file)through mapping,it is generating only last record. So,How internall…
Find elsewhere
🌐
Learning Container
learningcontainer.com › home › sample xml with multiple records
Sample XML With Multiple Records Archives - Learning Container
The sample XML(Extensible Markup Language) file will provide you file that contains XML data that will be used for your testing purposes. XML files look like HTML files but XML has its custom tags. XML files are also viewed in the browser and it is human and machine-readable.
🌐
W3Schools
w3schools.com › xml › xml_examples.asp
XML Examples
View a simple XML file (note.xml) View the same XML file with an error View an XML CD catalog View an XML plant catalog View an XML food menu
🌐
Service Architecture
service-architecture.com › articles › object-oriented-databases › xml-file-for-complex-data.html
XML File for the Complex Data Example
<?xml version="1.0"?> <?xml-stylesheet href="catalog.xsl" type="text/xsl"?> <!DOCTYPE catalog SYSTEM "catalog.dtd"> <catalog> <product description="Cardigan Sweater" product_image="cardigan.jpg"> <catalog_item gender="Men's"> <item_number>QWZ5671</item_number> <price>39.95</price> <size description="Medium"> <color_swatch image="red_cardigan.jpg">Red</color_swatch> <color_swatch image="burgundy_cardigan.jpg">Burgundy</color_swatch> </size> <size description="Large"> <color_swatch image="red_cardigan.jpg">Red</color_swatch> <color_swatch image="burgundy_cardigan.jpg">Burgundy</color_swatch> </s
🌐
Oracle
forums.oracle.com › ords › apexds › post › xml-file-with-multiple-records-6218
XML file with multiple records - Oracle Forums
February 7, 2004 - I have an XML data file that will look something like this (repeated possibly several hundred times): Wake up to WonderWidgets!
🌐
Sample-Files.com
sample-files.com › data › xml
Sample XML files for download | Sample-Files.com
May 22, 2025 - Download free sample XML files for development and testing. Various structures, sizes, and complexities available. Perfect for XML parsing, validation, and transformation tasks. Get started now!
🌐
Blogger
oceatherig.blogspot.com › 2020 › 05 › sample-xml-file-download.html
Files download: Sample xml file download
Appsloveworld allows programmers, testers, sample xml file download, developers to download a sample XML file with multiple records, an XML sample xml file download with a sample xml file download hierarchy structure.
🌐
Spiceworks
community.spiceworks.com › business
Create Multiple Record Layouts in 1 XML File Layout - Business - Spiceworks Community
July 17, 2012 - I am asked to create an XML file for a vendor. The file has multiple record layouts depending on the data. I can create a XML file layout but don’t know how to create multiple record layouts within the same file layout. …