Java XML Node Read readText(Node element)

Here you can find the source of readText(Node element)

Description

read Text

License

Apache License

Declaration

public static String readText(Node element) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import org.w3c.dom.Node;

public class Main {

    public static String readText(Node element) {
        if (element == null)
            return "";
        else/*from ww  w . j a  va  2s  .  co m*/
            return element.getTextContent();
    }
}

Related

  1. readDouble(Node node)
  2. readNodeElementsToMap(final Node sourceNode)