Snippet zum auslesen einer XML Datei
MatchingList matchings = null;
string path = "***.xml";
XmlSerializer serializer = new XmlSerializer(typeof(MatchingList));
StreamReader reader = new StreamReader(path);
matchings = (MatchingList)serializer.Deserialize(reader);
reader.Close();
foreach (var matching in matchings.ContactEntry)
{
Console.WriteLine(matching.Subjekt);
}
2 Kommentare zum Snippet