InternalMatcherContext matcherContext = new MatcherContextImpl(
elementStack);
// Create iteratees that will invoke the depth change listeners before
// start and after end element events.
beforeStartElementIteratee = new BeforeStartElementIteratee(
matcherContext);
afterEndElementIteratee = new AfterEndElementIteratee(matcherContext);
listeners = new MutableListenersImpl();