Saxon.SetLicense
----------------

Sets the license key for Saxon.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Saxon](component_Saxon.md) | [15.1](newinversion151.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |

MBS( "Saxon.SetLicense"; Name; Product; Expire Month; Serial ) 

**MBS**( **"Saxon.SetLicense";** /\* Sets the license key for Saxon. \*/  
**$Name**; /\* The name of the licensee.e.g. "John Miller" \*/   
**$Product**; /\* What product you purchaede.e.g. "Saxon-PE" \*/   
**$Expire Month**; /\* This is the month in which the serial will expire for new versions of the plug-in in YYYYMM format. Plug-in released before the end of that month will continue to work forever. New Releases after that date will require a renewale.g. 202508 \*/   
**$Serial**) /\* The license code.e.g. 1234567 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Name | The name of the licensee. | "John Miller" |
| Product | What product you purchaede. | "Saxon-PE" |
| Expire Month | This is the month in which the serial will expire for new versions of the plug-in in YYYYMM format. Plug-in released before the end of that month will continue to work forever. New Releases after that date will require a renewal | 202508 |
| Serial | The license code. | 1234567 |

### Result

Returns OK or error.

### Description

Sets the license key for Saxon.  
This is for a Saxon license key purchased from Monkeybread Software in addition to a MBS Plugin license.  
Can be currently either be one for Saxon-PE or Saxon-EEV.  
### Examples

Set license:

 Set Variable \[ $r ; Value: MBS ( "Saxon.SetLicense"; "Your Name"; "Saxon-PE"; 202601; 123456 ) \]  
### See also

- [Saxon.ClearLicense](SaxonClearLicense.md)
- [Saxon.IsLicensed](SaxonIsLicensed.md)
- [Saxon.LicenseeName](SaxonLicenseeName.md)

### Release notes

- **Version 15.1**
    - Added [Saxon.SetLicense](https://www.mbsplugins.eu/SaxonSetLicense.shtml) and [Saxon.ClearLicense](https://www.mbsplugins.eu/SaxonClearLicense.shtml) function.

### Example Databases

- [DynaPDF/ZUGFeRD and Facture-X/ZUGFeRD Validation](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/ZUGFeRD%20and%20Facture-X/ZUGFeRD%20Validation.shtml#3ScriptAnchor_)
- [Saxon/Saxon ZUGFeRD Validation](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Saxon/Saxon%20ZUGFeRD%20Validation.shtml#8ScriptAnchor_)

### Blog Entries

- [Validate electronic invoices with Saxon](https://www.mbsplugins.de/archive/2026-03-20/Validate_electronic_invoices_w/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 15.1 News](https://www.mbsplugins.de/archive/2025-03-19/MBS_FileMaker_Plugin_151_News/monkeybreadsoftware_blog_filemaker)
- [Validate electronic invoices with Saxon](https://www.mbsplugins.de/archive/2025-02-18/Validate_electronic_invoices_w/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 15.1pr1](https://www.mbsplugins.de/archive/2025-02-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 8th January 2025 , last changed 1st February 2025

  
[Saxon.SetLanguageVersion](SaxonSetLanguageVersion.md) - [Saxon.SetParameter](SaxonSetParameter.md)

[HTML Version](SaxonSetLicense.shtml)