Sat, 03 Aug 2019 11:02:55 +0200
make targets without name and prefix possible
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package de.unixwork.uwproj; import org.w3c.dom.Element; import org.w3c.dom.Node; import org.w3c.dom.NodeList; /** * * @author olaf */ public class Xml { public static String getContent(Element elm) { NodeList nodes = elm.getChildNodes(); for(int i=0;i<nodes.getLength();i++) { Node node = nodes.item(i); if (node.getNodeType() == Node.TEXT_NODE) { return node.getTextContent(); } } return null; } }