Add same logic for hiding links in XML as existed in JSON