Training Module: Comparing document versions
You can compare two document versions in a project, creating a new version that shows the differences as tracked changes.
📘 Introduction
📚 Exercises
🛠️ Getting Started
Before you can draft a bill, you will need to create your own training project containing a half finished bill to continue drafting.
If you haven’t got one already, create a project containing a half finished bill:
Drafting a bill.xml
The following steps will allow you to create the data required for this exercise. exercise.
The following steps will allow you to create the data required for this exercise.
✏️ Exercise 1: Compare two documents
In this exercise you will see how compare document works but also be aware of its strengths and weaknesses.
Step 1: Make some edits
If you haven’t already done so, duplicate the imported bill version and name it the description of this module so you can easily track work related to these exercises. Open this document in the Editor. When the Editor has finished loading, recreate the following edits but not in tracked change mode—

Step 2: Compare your edited version with the original version
In the Project tab, select the edited version and compare with the original version.
Step 3: Make more significant structural changes
Open the edited document in the Editor and make some more significant changes—
Step 4: Compare your further edited version with the original version
Compare your further edited version of the document with the original version following the same steps in step 2
Compare version does well with basic insertions and deletions.
More complicated structural editing and certain actions in Lawmaker that involve a lot of ‘behind the scenes’ operations can create a lot of ‘noise’ in Compare Version.
Inserting a quoted structure is an example of a ‘behind the scene’ action where the text of the introducing provision is removed and re-inserted so that a <mod> element can wrapped around it.
Moving provisions is another example of a ‘behind the scene’ action where the provision is deleted and then re-inserted so in compare terms, it shows as a deletion and insertion.