Android XML Node Set setTextContent(Node n, String s)

Here you can find the source of setTextContent(Node n, String s)

Description

set Text Content

Declaration

public static void setTextContent(Node n, String s) 

Method Source Code

//package com.java2s;

import org.w3c.dom.*;

public class Main {
    public static Document d;

    public static void setTextContent(Node n, String s) {
        n.appendChild(d.createTextNode(s));
    }//from   w  w w.  j  a  v  a  2  s  . c o  m
}

Related

  1. setTextContent(Node node, String string)
  2. xmlUpdateNodeValue(String filename, String nodeName, String unitName, float ratio)