Code example for XmlSerializer

Methods: toStringendDocumentflush

0
     * @throws IllegalArgumentException 
     */ 
    public static void endXmlDocument(XmlSerializer writer) throws IllegalArgumentException, IllegalStateException,
            IOException { 
        // end document 
        writer.endDocument();
        writer.flush();
        writer.toString();
    } 
 
    /** 
     * Writes a String tag. 
     *  
     * @throws IOException 
     * @throws IllegalStateException 
     * @throws IllegalArgumentException 
     */ 
    public static void write(XmlSerializer writer, String prefix, String namespace, String tag, String value)
            throws IllegalArgumentException, IllegalStateException, IOException { 
        if (value == null) {
Contextual code suggestions in your IDE  Get Codota for Java