maybe just fold all not changed lines?

````xml
<whitelist>
    <!-- ... -->
    <directory>../lib</directory>
    <exclude>
        <!-- ... -->
        <directory>../lib/tests</directory>
    </exclude>
</whitelist>
````