Evaluating ExamDiff Pro
How can I set a default to ignore a difference in a XML tag?
For Example:
<CREDAT>20161007</CREDAT><CRETIM>121059</CRETIM>
<CREDAT>20161007</CREDAT><CRETIM>128203</CRETIM>
I do not want to be noticed about a difference in the value between <CRETIM> and </CRETIM>
Ignore a difference in a XML tag
Re: Ignore a difference in a XML tag
This is not XML-specific but you can ignore parts of lines (see Options | Text Compare) using a regular expression. In your case you can try something like this:
<CRETIM>.*</CRETIM>
<CRETIM>.*</CRETIM>
psguru
PrestoSoft
PrestoSoft
Re: Ignore a difference in a XML tag
careful, * is greedy - better use
<CRETIM>.*?</CRETIM>
(i.e. the non-greedy *? instead of the greedy *)
this handles the case that there are more than one CRETIM elements on a line.
<CRETIM>.*?</CRETIM>
(i.e. the non-greedy *? instead of the greedy *)
this handles the case that there are more than one CRETIM elements on a line.
Re: Ignore a difference in a XML tag
Thank you both for your reply. I used <CRETIM>.*?</CRETIM> which works perfect.