Change Row colour in xml.

Could I change the row color when I am creating the xml?
I want to change the color based on a cell value.

You may define the color of the row right in XML:

<row id="2" style="color:red;"> <cell>1</cell> <cell>2</cell> <cell>3</cell> </row>