Android XML Serializer Write textTag(XmlSerializer xml, String namespace, String name, Object text)

Here you can find the source of textTag(XmlSerializer xml, String namespace, String name, Object text)

Description

text Tag

Declaration

public static void textTag(XmlSerializer xml, String namespace,
            String name, Object text) throws IOException 

Method Source Code

//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);
    }
}

Related

  1. multipleTexts(final XmlSerializer serializer, final String prefix, final String... tagAndText)
  2. simpleText(final XmlSerializer serializer, final String prefix, final String tag, final String text)
  3. writeBitmapAttribute(XmlSerializer out, String name, Bitmap value)
  4. writeBitmapAttribute(XmlSerializer out, String name, Bitmap value)
  5. writeBooleanAttribute(XmlSerializer out, String name, boolean value)
  6. writeBooleanAttribute(XmlSerializer out, String name, boolean value)