I have a challenging question. My requirement is like i have a xml file which has values like
Name 0,20
age 21,4
This is like field names values will be there in the following position. I have 100 records like this in my xml file. I want to dynamically read this xml file which is the layout. and to compare two output files generated by two different companies. Output1 and Output2… where the values for Name at the position and age at the position will be there. I want to read the values and manually show the user that there is a differences in the two files at these areas.
Is there any dynamic viewer control available in .net, C# windows , wpf app to display these differences in two files?
One of several possible solutions that come to my mind is:
WPF RichTextBox, were you can load complete formatted text and format/color part of it, which you can use for highlighting the differnces found.WPF RichTextBox Sample1
WPF RichTextBox Sample2
You need to consider that the
WPF TextBoxis, basically, easy to use but also addicted to consume a lot of memory, so keep an eye on the memory consumption of your app.There are, naturally other editors, that you can use, like Scintilla, but I think the story in this case become more complicated.
EDIT:
There could be another non programming solution, is just using WinMerge and run that program (which is free) with required parameters. So it will care about showing/highlighting the differences found between 2 different files.
Choice is up to you.