code: public static void setXMLMaxOccurIfLarger (final int nMaxOccur)
    {
      final int nOldValue = getXMLMaxOccur ();
      if (nOldValue > 0)
      {
        // Current value is limited
        if (nMaxOccur <= 0 || nMaxOccur > nOldValue)
        {
          // New value is unlimited or higher
          setXMLMaxOccur (nMaxOccur);
        }
      }
      // else -> cannot be increased
    }
docs: The same as {@link #setXMLMaxOccur(int)} but just that the value is only
  set, if the limit is increased!
  
  @param nMaxOccur
  A positive integer. Values &le; 0 are treated as no limit.
  @since 8.6.2
  @see #setXMLMaxOccur(int)