Currently if an element does not exist in the DOM, the element factory return a NULL pointer to the parser. This causes problem with popping elements from the context stack in endElement as NULL pointer elements (for obvious reasons) is never pushed on the stack in startElement.
The solution is to never have the element factory return a NULL pointer but a dummy element.
Currently if an element does not exist in the DOM, the element factory return a
NULL
pointer to the parser. This causes problem with popping elements from the context stack in endElement asNULL
pointer elements (for obvious reasons) is never pushed on the stack in startElement.The solution is to never have the element factory return a
NULL
pointer but a dummy element.