Java XML Child Element Text getChildTextContent(Element elemenet, String childElemenetName)

Here you can find the source of getChildTextContent(Element elemenet, String childElemenetName)

Description

get Child Text Content

License

Open Source License

Declaration

public static String getChildTextContent(Element elemenet, String childElemenetName) 

Method Source Code

//package com.java2s;
/*/*from   w  w  w  .ja  v  a 2s .  co m*/
 * This file is part of Dorado 7.x (http://dorado7.bsdn.org).
 * 
 * Copyright (c) 2002-2012 BSTEK Corp. All rights reserved.
 * 
 * This file is dual-licensed under the AGPLv3 (http://www.gnu.org/licenses/agpl-3.0.html) 
 * and BSDN commercial (http://www.bsdn.org/licenses) licenses.
 * 
 * If you are unsure which license is appropriate for your use, please contact the sales department
 * at http://www.bstek.com/contact.
 */

import org.w3c.dom.Element;

public class Main {

    public static String getChildTextContent(Element elemenet, String childElemenetName) {
        return org.springframework.util.xml.DomUtils.getChildElementValueByTagName(elemenet, childElemenetName);
    }
}

Related

  1. getChildText(Node parent, String childName)
  2. getChildTextAsBoolean(Element parent, String childName, boolean defValue)
  3. getChildTextAsBooleanObj(Element parent, String childName, Boolean defValue)
  4. getChildTextByName(Element parent, String name)
  5. getChildTextByTagName(Element e, String tagName)
  6. getChildTextContent(Element element, String childTagName)
  7. getChildTextList(Element elem, String childTagName)
  8. getChildTextNode(Element el)
  9. getChildTextNodes(Element parent)