Xml parsing to struct with defined types