Analize XML answer and format it to PostgreSQL COPY format