for(int row=0;row<rowCount;row++)
{
System.out.println(" <Row index=\"" + row + "\">");
for(int col=0;col<colCount;col++)
{
System.out.println(" <F>" + rat.GetValueAsString(row, col)+ "</F>");
}
System.out.println(" </Row>");
}
System.out.println("</GDALRasterAttributeTable>");
}