Code example for XmlSerializer

Methods: endTagstartTagtext

    private static void writeElement(XmlSerializer serializer, String name, String value)
            throws IOException { 
        if (!TextUtils.isEmpty(value)) {
            serializer.startTag(null, name);
            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;
Connect your IDE to all the code out there  Get Codota for Java