I am using HTTP client 4.1.2.I want to access outlook web and get mails data.Here is the code which I have done.
CredentialsProvider credsProvider = new BasicCredentialsProvider();
credsProvider.setCredentials(new AuthScope(AuthScope.ANY_HOST,
AuthScope.ANY_PORT,AuthScope.ANY_REALM, AuthPolicy.BASIC),
new UsernamePasswordCredentials(Username, password));
DefaultHttpClient Client= new DefaultHttpClient();
HttpContext localContext = new BasicHttpContext();
HttpGet get= new HttpGet(uri);
HttpEntity entity = response.getEntity();
String html=null;
if(!entity.equals(null)){
html=EntityUtils.toString(entity,HTTP.UTF_8);
}
The output is HTML page in the from of String.How can I convert this into XML?