xml map to array