src/main/java/de/unixwork/uwproj/Xml.java

changeset 40
b42bfc9e9983
parent 39
3ca85da78515
child 41
75ee588d5d9e
--- a/src/main/java/de/unixwork/uwproj/Xml.java	Wed Sep 06 21:08:04 2023 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,27 +0,0 @@
-/*
- * 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;
-    }
-}

mercurial