Code example for XmlSerializer

Methods: endTag, startTag, text

0
        } 
 
        if (namespace == null) {
            writer.startTag(null, tag);
        } else { 
            writer.startTag(namespace, tag);
        } 
        writer.text(value);
        writer.endTag(namespace, tag);
    } 
 
    /** 
     * Writes an Integer tag. 
     *  
     * @throws IOException 
     * @throws IllegalStateException 
     * @throws IllegalArgumentException 
     */ 
    public static void write(XmlSerializer writer, String prefix, String namespace, String tag, BigInteger value)
            throws IllegalArgumentException, IllegalStateException, IOException { 
        if (value == null) {