fixes #1598 fixes #1599 use xml to assoc video->exam

@sefk same as to master