validate key parts when building the tree from xml