Android XML Document Append appendTextNode(String tagName, String textContent, Document doc)

Here you can find the source of appendTextNode(String tagName, String textContent, Document doc)

Description

append Text Node

Declaration

public static Element appendTextNode(String tagName,
            String textContent, Document doc) 

Method Source Code

//package com.java2s;

import org.w3c.dom.Document;
import org.w3c.dom.Element;

public class Main {
    public static Element appendTextNode(String tagName,
            String textContent, Document doc) {
        Element textNode = doc.createElement(tagName);
        textNode.setTextContent(textContent);
        return textNode;
    }/*from   www.j  a  v  a2  s .c o  m*/
}

Related

  1. buildPlayerNode(Document doc, String user, String addy, double lat, double lng)
  2. createAttribute(Document document, String name, String value)
  3. createElementWithCDATASection(Document document, String name, String value)
  4. createElementWithTextNode(Document document, String name, String value)