Esempio n. 1
0
 @Test
 public void testRead() {
   String xmlFile = System.getProperty("user.dir") + "/config.xml";
   try {
     String text = XmlUtils.getNodeText(xmlFile, "iqq/version");
     System.out.println(text);
     Assert.assertNotNull(text);
   } catch (DocumentException e) {
     e.printStackTrace();
   }
 }