Each time GetNextDoc() is called, WasDocError will be true if there was an error processing the previous document (such as a file parsing error)