Found out how to run the lxml parser in recover mode, similar to xmllint --recover.