@Test public void testStringToXml() throws Exception { System.out.println("stringToXml"); String string = "<root/>"; Document expResult = null; Document result = XmlUtil.stringToXml(string); }
public static Document stringToXml(String string) throws Exception { if (builder == null) { throw new Exception("DocumentBuilder is null."); } return builder.parse(new InputSource(new ByteArrayInputStream(string.getBytes("UTF-8")))); }
XmlUtil { public static Document stringToXml(String string) throws Exception { if (builder == null) { throw new Exception("DocumentBuilder is null."); } return builder.parse(new InputSource(new ByteArrayInputStream(string.getBytes("UTF-8")))); } }
XmlUtil { public static Document stringToXml(String string) throws Exception { if (builder == null) { throw new Exception("DocumentBuilder is null."); } return builder.parse(new InputSource(new ByteArrayInputStream(string.getBytes("UTF-8")))); }  }
XmlUtil { public static Document stringToXml(String string) throws Exception { if (builder == null) { throw new Exception("DocumentBuilder is null."); } return builder.parse(new InputSource(new ByteArrayInputStream(string.getBytes("UTF-8")))); }  static Document stringToXml(String string); static String xmlToString(Document document); }
XmlUtil { public static Document stringToXml(String string) throws Exception { if (builder == null) { throw new Exception("DocumentBuilder is null."); } return builder.parse(new InputSource(new ByteArrayInputStream(string.getBytes("UTF-8")))); }  static Document stringToXml(String string); static String xmlToString(Document document);  }