bohdaq/ForestBT — Issue #4: XML Handler
Author: dmytrodanylyk
Created: 2012-01-25 19:50:10+00:00
State: open

Instead of using boolean values consider following code:

int CURRENT_LEVEL = -1;
int LEVEL_TREE = 1;
int LEVEL_LEAF = 2;
....

if(CURRENT_LEVEL == LEVEL_TREE)
{
//parse tree
}
else if(CURRENT_LEVEL == LEVEL_LEAF)
{
//parse leaf
}
..