Updated xml parse script