Android examples for XML:XML Tag
Create starting tag
//package com.java2s; public class Main { public static void main(String[] argv) throws Exception { String tag = "java2s.com"; System.out.println(entag(tag)); }// w ww.jav a 2s.c om public static String entag(String tag) { return "<" + tag + ">\n"; } }