descriptions
element specifies attributes which will be considered as descriptions. The comparison of these attributes can be a little more lax than the comparison for other attributes. applyRegex
children (optional) specify a regex which an be applied to the attribute valuedescription
child (mandatory) specify the attribute of the element which will be considered as a descriptionapplyRegex
children (optional) specify a regex which an be applied to the attribute value. For example, if we have:<rule> <appliesOn> <nodeName name="desc" /> </appliesOn> <descriptions> <applyRegex replaceFrom="\s+" replaceTo=" " /> <applyRegex replaceFrom=" " replaceTo="
" /> <description name="value" /> </descriptions> </rule>The comparison of the following nodes will return:
Left | Right | Result |
---|---|---|
<desc value="the value" /> |
<desc value="the value" /> |
Identical |
<desc value="the 
 value" /> |
<desc value="the value" /> |
Identical |
<desc value="the value1" /> |
<desc value="the value2" /> |
Different |
<rule> <appliesOn> <nodeName name="description" /> </appliesOn> <descriptions trimType="Trim"> <applyRegex replaceFrom="\s+" replaceTo=" " /> <applyRegex replaceFrom=" " replaceTo="
" /> <description name="value" /> </descriptions> </rule>
xmldiff Copyright (c) 2024 Herve Girod. All rights reserved.