processor.isNullProcessor = true;
processor.parentProcessor = currentProcessor;
currentProcessor = processor;
// Register the "presence" of the element...
if(eventListener != null) {
eventListener.onEvent(new ElementPresentEvent(new WriterManagedSAXElement(elementQName, startEvent.atts, currentProcessor.element)));
}
} else {
if(!isRoot) {
// Push the existing "current" processor onto the stack and create a new current
// based on this start event...
element = new WriterManagedSAXElement(elementQName, startEvent.atts, currentProcessor.element);
element.setWriter(getWriter());
onChildElement(element);
} else {
element = new WriterManagedSAXElement(elementQName, startEvent.atts, null);
element.setWriter(writer);
}
// Register the "presence" of the element...
if(eventListener != null) {
eventListener.onEvent(new ElementPresentEvent(element));
}
visitBefore(element, elementVisitorConfig);
}
}