Hi,
I have an xml file which defines a table with certain columns.The columns differ primarily on their 'type' attribute.
For eg:
/*xml snippet starts*/
<Column name="CA" type="STRING" xax="true" index="0" />
<Column name="BA" type="STRING" xax="true" index="1" />
<Column name="DA" type="DOUBLE" index="2" />
//Each Row is associated with cells corresponding to the columns as shown below:-
<Row>
<Cell>Tees</Cell>
<Cell>Bangladesh</Cell>
<Cell>2603.299</Cell>
/*xml snippet ends */
I am trying to write a
java program which does something like this in pseudo code:-
if(cell.isOfTypeString()){
doSomething();
}
else{
doSomethingElse();
}
I am not able to figure out that for a given object "cell",how to figure out if it's type attribute is equal to "STRING" .
Any help will be greatly appreciated.
Thanks.