Added invalidocumentexception (it is now raised)