Code example for CharArrayReader

0
							+ System.getProperty("file.encoding") + ") instead.");
				} 
			} 
			reader.parse(source);
 
			content.append(StringUtil.writeToString(new CharArrayReader(writer.toCharArray())));
		} catch (Exception e) {
			log.warn("Failed to extract XML text content", e);
		} 
	} 
}