ed11851 Improve handling for old XML fil...

based on: http://github.com/torvalds/subsurface/commit/ed11851ae3053e146bafb45ecfc48b2520ba8bb1

compiled with: mingw 3.4.5

notes:
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>