Fixes #6730 : close xml reader on fromFile after it open

Fixes #6730