fixed XMLLoader after codereview