question: private void printAttribute ( String name , String value , boolean isSpecified , Attr attr ) throws IOException { if ( isSpecified || ( features & DOMSerializerImpl . DISCARDDEFAULT ) == 0 ) { if ( fDOMFilter != null && ( fDOMFilter . getWhatToShow ( ) & NodeFilter . SHOW_ATTRIBUTE ) != 0 ) { short code = fDOMFilter . acceptNode ( attr ) ; switch ( code ) { case NodeFilter . FILTER_REJECT : case NodeFilter . FILTER_SKIP : { return ; } default : { } } } _printer . printSpace ( ) ; _printer . printText ( name ) ; _printer . printText ( "=\"" ) ; printEscaped ( value ) ; _printer . printText ( '"' ) ; } if ( name . equals ( "xml:space" ) ) { if ( value . equals ( "preserve" ) ) fPreserveSpace = true ; else fPreserveSpace = _format . getPreserveSpace ( ) ; } }
target:  Prints attribute. NOTE: xml:space attribute modifies output format