Code example for XmlSerializer

Methods: endTag, startTag, text

0
    } 
 
    private static void writeElement(XmlSerializer serializer, String name, String value)
            throws IOException { 
        if (!TextUtils.isEmpty(value)) {
            serializer.startTag(null, name);
            serializer.text(value);
            serializer.endTag(null, name);
        } 
    } 
 
    private static class PresetDescription { 
        public int index;
        public int frequency;
        public String name;
 
        public boolean isValid() { 
            return index > 0 && frequency >= FMUtil.MIN_FREQUENCY && frequency <= FMUtil.MAX_FREQUENCY;
        } 
        @Override 
        public String toString() {