Setting output from xml_reader to structure fields; need method for conversion to int, double