format xml request&&response to array