title: solr response in xml format
body: <p>I am trying to query Solr using certain fields and I want the response in XML format. Somehow I am not able to get the response in XML format even though I have set the parser to <code>XMLResponseParser</code>. Please check the code and let me know what is wrong in here:</p>
  
  <pre class="lang-java prettyprint-override"><code>HttpSolrServer  solr = new HttpSolrServer(urlString);
  
  String queryString ="*:*"; 
  SolrQuery query = new SolrQuery(queryString); 
  query.setQuery(queryString); 
  query.setFields("type", "typestring");
  query.addFilterQuery("id"); 
  query.setStart(0); 
  query.setRows(100); 
  
  solr.setParser(new XMLResponseParser());
  
  QueryResponse resp = solr.query(query);
  SolrDocumentList results = resp.getResults();
  for (int i = 0; i &lt; results.size(); ++i) {
      // I need this results in xml format
      System.out.println(results.get(i));
  }
  </code></pre>