public static void serializeElement(XmlSerializer serializer, String tag, String text) throws IllegalArgumentException,
            IllegalStateException, IOException {
        serializer.startTag(Constants.EMPTY_STRING, tag);
        serializer.text(text);
        serializer.endTag(Constants.EMPTY_STRING, tag);
    }
public static void serializeElement(XmlSerializer serializer, String tag, String text) throws IllegalArgumentException,
            IllegalStateException, IOException {
        serializer.startTag(Constants.EMPTY_STRING, tag);
        serializer.text(text);
        serializer.endTag(Constants.EMPTY_STRING, tag);
    }
public static void serializeElement ( XmlSerializer serializer , String tag , String text ) throws IllegalArgumentException , IllegalStateException , IOException { serializer . startTag ( Constants . EMPTY_STRING , tag ) ; serializer . text ( text ) ; serializer . endTag ( Constants . EMPTY_STRING , tag ) ; }
Writes an XML element to the <code>XmlSerializer</code> without a namespace.

@param serializer
the <code>XmlSerializer</code> to write to
@param tag
the tag to use for the XML element
@param text
the text to write inside the XML tags
@throws IOException
if there is an error writing the output.
@throws IllegalStateException
if there is an error writing the output.
@throws IllegalArgumentException
if there is an error writing the output.
Writes an XML element to the <code > XmlSerializer< / code > without a namespace .