added generate xml for ruletree