That is why you wrote the EndElement method right after its corresponding StartElement.