Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Xml.Serialization;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- XmlSerializer XmlSerializer = new XmlSerializer(typeof(ArrayOfFolkbokforingspostTYPE));
- StreamReader sr = new StreamReader("data.xml");
- ArrayOfFolkbokforingspostTYPE information = (ArrayOfFolkbokforingspostTYPE)XmlSerializer.Deserialize(sr);
- Console.WriteLine("Information:");
- foreach(var info in information.FolkbokforingspostTYPE)
- Console.WriteLine("Personnummer:" + info.Personpost.PersonId.PersonNr);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement