http query to generate xml