}
writeStartElement( XMLConstants.Main.SHEET_DATA );
if (_sheet != null) {
final List<? extends BaseRow> rows = ((BaseSheet) _sheet).getRowList();
for (int ri = 0; ri != rows.size(); ri++) {
final BaseRow row = rows.get( ri );
writeStartElement( XMLConstants.Main.ROW );
writeAttribute( XMLConstants.Main.ROW_INDEX, String.valueOf( ri + 1 ) );
if (row != null) {
if (this.template != null)
writeRowStyle( row.getStyleName() );
final List<? extends CellInstance> cells = row.getCellList();
for (int ci = 0; ci != cells.size(); ci++) {
final CellInstance cell = cells.get( ci );
writeStartElement( XMLConstants.Main.CELL );
final StringBuilder sb = new StringBuilder();
CellAddressImpl.appendNameA1ForCellIndex( sb, ci, false, ri, false );