List of utility methods to do StringReader Create
Document | stringToXml(final String data) string To Xml try { final Reader reader = new StringReader(data); final InputSource source = new InputSource(reader); return DocumentBuilderFactory.newInstance() .newDocumentBuilder().parse(source); } catch (Exception e) { throw new RuntimeException(e); |