Ralf Stocker added error checks and set DtdProcessing to Parse by default