public static void ShowArtistsContentByIdXML(int id) { //With Xml ArtistsHttpClient artistsClient = new ArtistsHttpClient("http://localhost:20098/", MediaTypeEnum.Xml); var artist = artistsClient.GetArtistById(id); Console.WriteLine(" - Artist Name - {0}; Country - {1}; Date of birth - {2}", artist.Name, artist.Country, artist.DateOfBirth); foreach (var song in artist.Songs) { Console.WriteLine(" Song Title - {0}; Year - {1}; Genre - {2}", song.Title, song.Year, song.Genre); } }