我正在使用httpclient在java中发布一个xml。我也期待一个xml作为回应。如何将响应解析为 xml?
这是我到目前为止所拥有的
HttpClient cliet = HttpClientFactory.getClient("mhurl.com");
...
PostMethod post;
post.setRquestEntity(new StringRequestEntity(myxml_in_string,"xml",...);
...
int result = client.executeMethod(post);
InputStream in = post.getRespoinseBodyAsStream();
?? //Not sure how to handle the response from here
谢谢。