xmlParser and obstacle class