Code example for CharArrayReader

0
		{ 
			Log.d("MONITOR", "Response!");
			String xml = EntityUtils.toString(httpResponse.getEntity());
			Log.d("MONITOR", xml);
			MonitorDataXmlReader xmlReader = new MonitorDataXmlReader();
			result = xmlReader.parseXML(new CharArrayReader(xml.toCharArray()));
			if (result != null);
				SettingsHelper.getInstance(c).setLastResult(telefonska, xml);
		} 
		catch (ParseException e)
		{ 
			Log.d("MONITOR", "Parse error!");
			e.printStackTrace();
			return null; 
		} 
		catch (IOException e)
		{ 
			Log.d("MONITOR", "IOException!");
			e.printStackTrace();
			return null; 
		}