protected void writeAttribute ( String name , String value ) { print ( " " ) ; print ( name ) ; print ( "=\"" ) ; // StringEscapeUtils escapes symbols ', < >, &, ", and some control characters // NumericEntityEscaper translates additional control characters \n, \t, ... print ( NumericEntityEscaper . below ( 0x20 ) . translate ( StringEscapeUtils . escapeXml11 ( value ) ) ) ; print ( "\"" ) ; }
Writes an attribute definition .