# Document Comparison using UI

Now, we have a capability to compare VC and VP documents.

{% hint style="info" %}
**Note:** Documents can only be compared of published policies
{% endhint %}

All dialogs displaying documents provide mean to add the current document into the ‘diff basket’ - the list of documents for comparison as shown below:

<figure><img src="https://3006114282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXVOaWpJKxLZf1Tee9eCO%2Fuploads%2FpTwTM9Lemr5c2J16Iu5W%2Fimage.png?alt=media&#x26;token=9ee89b89-2a0c-465f-9917-80fd4c25a49d" alt=""><figcaption></figcaption></figure>

If the ‘diff basket’ of documents is not empty a corresponding icon with a count will be displayed in the menu bar of Guardian UI.&#x20;

From the drop-down menu displayed upon clicking on this icon users can select document and execute the comparison.

<figure><img src="https://3006114282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXVOaWpJKxLZf1Tee9eCO%2Fuploads%2FTQ834wgvAbOJfCWJ7r29%2Fimage.png?alt=media&#x26;token=e453f2bc-9063-4c9d-9397-03d3f08c810d" alt=""><figcaption></figcaption></figure>

When documents are compared the entire chain of linked documents is compared. It also includes the content of these documents.

<figure><img src="https://3006114282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXVOaWpJKxLZf1Tee9eCO%2Fuploads%2F2rRnARVBtgw5CvSPkcJh%2Fimage.png?alt=media&#x26;token=5b2f7173-e6c3-4059-a1db-79fa52bd3d92" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3006114282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXVOaWpJKxLZf1Tee9eCO%2Fuploads%2FCOlknRIv563iy2drkDM5%2Fimage.png?alt=media&#x26;token=63a462b6-00b0-4842-9d9f-f6f212f70307" alt=""><figcaption></figcaption></figure>
