Parsing of xml file into internat struct