fixed download and xml validation