Here you can find the source of getChildTextNodeValue(Node node)
null
.
public static String getChildTextNodeValue(Node node)
//package com.java2s; /**/*from w ww .j a v a2 s . c o m*/ * This file is part of SIMPL4(http://simpl4.org). * * Copyright [2014] [Manfred Sattler] <manfred@ms123.org> * * SIMPL4 is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * SIMPL4 is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with SIMPL4. If not, see <http://www.gnu.org/licenses/>. */ import org.w3c.dom.Node; public class Main { /** * Returns value of single child text node or <code>null</code>. */ public static String getChildTextNodeValue(Node node) { if (node.getChildNodes().getLength() != 1) { return null; } Node item0 = node.getChildNodes().item(0); if (item0.getNodeType() != Node.TEXT_NODE) { return null; } return item0.getNodeValue(); } }