Site Tools


Monkey Script Compiler License XML Format

Summary: A description of the structure of the XML license table

If you want to automate a license system for your Monkey Compiled plug-in, you should probably use the XML license table format. The Monkey Script Compiler can save an XML file with any number of valid licenses (for a particular product password). This wiki page is a description of the XML structure of that file:

The XML document has a single node called <monkeycompilerlicensedata> which in turn contains four subitems:

  • <monkeycompilerlicensedata>
    • <!–Monkey Compiler Project License Data–>
    • <!–29 April 2007 13:15:43–>
    • <settings>
    • <keylist>

The settings node contains all relevant project data, grouped into two categories:

  • <settings>
    • <project>
    • <license>

The project node contains information about the manufacturer and the plug-in:

  • <project>
    • <name> Exampleplugin </name>
    • <version> 1.0.0.1 </version>
    • <organization> Some Company </organization>
    • <website> www.Something.com </website>
    • <updateurl> www.Something.com/ExamplePlugin1.html </updateurl>
    • <plugin_uuid> 07ac1c1b-7b52-45a4-074e-bd075c2d6c40 </plugin_uuid>

While the license node contains the license password and code:

  • <license>
    • <hash> When I was little I had a dog named Borka </hash>
    • <prefix> EXAM </prefix>

The keylist node contains a keycount subnode which indicates the number of defined licenses, and a number of identically named licensekey subnodes, each of which represents a single valid license data block:

  • <keylist>
    • <keycount> 1000 </keycount>
    • <licensekey>
    • <licensekey>
    • ….
    • <licensekey>
    • <licensekey>

Licensekey nodes contain a license string, and they have several empty fields for customer information. Of course when you have an XML parser in place it is very easy to add custom fields, but the standard ones are already included…

  • <licensekey>
    • <customer>
      • <name> unassigned </name>
      • <contact> unassigned </contact>
      • <date> unassigned </date>
      • <info> </info>
    • <key> EXAM - 7I1Z - 9J2E - 5E7Q - 2716 </key>
developer/monkeycompilerlicensexmlformat.txt · Last modified: 2016/03/21 by sandy