working XML file reader