def add_asset_linking_to_xml(xml, enabled)
      elem = REXML::XPath.first(xml, '//AssetCorrelation')
      return nil unless elem

      elem.attributes['enabled'] = enabled ? '1' : '0'
    end
def add_asset_linking_to_xml(xml, enabled)
      elem = REXML::XPath.first(xml, '//AssetCorrelation')
      return nil unless elem

      elem.attributes['enabled'] = enabled ? '1' : '0'
    end
Internal method for updating asset linking before saving.