more xml record extraction, now inluding error reporting