private static void serializeElement ( final String tag , final String content , final ContentHandler handler ) throws SAXException { final AttributesImpl attributes = new AttributesImpl ( ) ; handler . startElement ( null , tag , tag , attributes ) ; handler . characters ( content . toCharArray ( ) , 0 , content . length ( ) ) ; handler . endElement ( null , tag , tag ) ; }
Creates an element with the specified tag name and character content .