question: public void generate ( XmlWriter w , ExtensionProfile extProfile ) throws IOException { ArrayList < XmlWriter . Attribute > attrs = new ArrayList < XmlWriter . Attribute > ( ) ; if ( row > 0 ) { attrs . add ( new XmlWriter . Attribute ( "row" , String . valueOf ( row ) ) ) ; } if ( col > 0 ) { attrs . add ( new XmlWriter . Attribute ( "col" , String . valueOf ( col ) ) ) ; } if ( inputValue != null ) { attrs . add ( new XmlWriter . Attribute ( "inputValue" , inputValue ) ) ; } if ( numericValue != null ) { attrs . add ( new XmlWriter . Attribute ( "numericValue" , numericValue . toString ( ) ) ) ; } w . simpleElement ( Namespaces . gSpreadNs , "cell" , attrs , value ) ; }
target:  Writes this cell as XML, omitting any unspecified fields.