: Because I used server.setParser(new XMLResponseParser()), I get the 
: wt=xml parameter in the responseHeader, but the format of the 
: responseHeader is clearly no XML at all. I expect Solr does output XML, 
: but that the QueryResponse, when I print its contents, formats this as 
: the string above.

what you are seeing is the results of the toString message on the 
QueryResponse object generated by the parser -- the XML is gone at this 
point, the XMLResponseParser processed it to generate that object.

that's really the main value add of using the SolrServer/ResponseParser 
APIs ... if you want the raw XML response there's almost no value in using 
those classes at all -- just use the HttpClient directly.




-Hoss

Reply via email to