private static void serializeBoolean ( final Boolean val , final ContentHandler handler ) throws SAXException { String tag = "false" ; if ( val . booleanValue ( ) ) { tag = "true" ; } final AttributesImpl attributes = new AttributesImpl ( ) ; handler . startElement ( null , tag , tag , attributes ) ; handler . endElement ( null , tag , tag ) ; }
Serialize a Boolean as a true or false element .