The XML Editor uses XML to describe compensation plans. Every template will begin with the line:
<?xml version="1.0" encoding="UTF-8"?>
This defines the XML version and the character encoding (8-bit Unicode Transformation Format (UTF-8)).
Next, we have to define the template. Contain templates within the opening and closing
Every element in an XML document must have a beginning and ending tag or begin and end within one tag:
<SetRank Rank="5" />
<SetRank> tag above is self-closing because it ends with
/``; meaning, it doesn’t need a separate ` closing tag.
<SetRank> element also has an attribute named
Rank. Use attributes to set simple values for an element. For more complex values, nest elements inside each other.
For example, the
<Template> below has
<Rules> within it. One of the rules is
Name="G2" Description="Gold 2", which has conditions required to meet. If met, you will become a Rank 5 Associate.
<Template> <Rule Name="G2" Description="Gold 2"> <And> <MeetsRule Rule="Active" /> <MeetsRule Rule="G1" /> <PVCondition Max="-1" Min="150" Volume="pqv" /> </And> <Result> <SetRank Rank="5" /> </Result> </Rule> </Template>
In this example, the Associate needs to meet the conditions (
"G1", as well as have at least 150 (
Min="150") Personal Volume from
Volume="pqv". You must define these terms elsewhere in the
As you build your commission template, you define:
- Different types of volume
- Where they come from
- How to earn them.
You then use these volumes later on in:
- Calculating payouts
- Determining which Rank the Associate has earned
Updated 5 months ago