implement transition from BART api XML into native data structure