Fixed bug that skipped the StartXmlDocumentEvent