XML Rule Parser implementation and test unit