Added validation steps in XML helpers #newInstance methods