Home
Categories
Dictionary
Download
Project Details
Changes Log
What Links Here
License

CDATA content


The CDATA element specifies how the CDATA content will be compared.

The attributes of this element are:
  • "excludeCDATA": specifies if the CDATA content of nodes is taken into account (default is false). See also excluding CDATA for more information
  • "removeNewLines": true if new lines must be removed for the comparison (false by default)
  • "trimType": specifies if the content must be right trimmed ("TrimRight"), left trimmed ("TrimLeft"), trimmed at the left and right ("Trim"), or not trimmed at all ("No") (it is "No" by default)
This element can have the following children:
  • The applyRegex children (optional) specify a regex which an be applied to the CDATA content. More than one regex replacement can be defined
For example:
   <nodeRules>
      <defaultRule>
         <identification>
            <attribute name="name" />
         </identification>   
         <CDATA trimType="TrimRight">
            <applyRegex replaceFrom="\s+" replaceTo=" " />
         </CDATA>       
      </defaultRule>  
   </nodeRules>

See also


Categories: core

xmldiff Copyright (c) 2024 Herve Girod. All rights reserved.