refactor xml import to allow for reuse

of code to read xml questions