Here you can find the source of textTag(XmlSerializer xml, String namespace, String name, Object text)
public static void textTag(XmlSerializer xml, String namespace, String name, Object text) throws IOException
//package com.java2s; import java.io.IOException; import org.xmlpull.v1.XmlSerializer; public class Main { public static void textTag(XmlSerializer xml, String namespace, String name, Object text) throws IOException { xml.startTag(namespace, name);//from ww w.j a va 2 s. c o m if (text != null) xml.text(text.toString()); xml.endTag(namespace, name); } }