revise XML parse to address multiple trails in a single file