Started refactoring XML testing to reuse XML diving iterations.