DaisyDiff output as a list of differences only instead of whole HTML response. Query similar to Issue # 24

122 views
Skip to first unread message

ravikumar itha

unread,
Oct 24, 2013, 11:25:33 AM10/24/13
to dais...@googlegroups.com
Hello Everyone,

I am able to compare two html Strings and get an output HTML also as a String.  i.e. I have tested DaisyDiff code as per the instructions at link http://code.google.com/p/daisydiff/issues/detail?id=24

However, my requirement is little different; I am trying to find out if there is anyway I can just get the list of only the differences between two input String instead of a whole HTML String.

E.g.

Input String 1: 

<html>
<body>
<table>
<tr>
<td> This is an HTML File of Arjun </td>
</tr>
</table>
</body>
</html>
                  
Input String 2:

<html>
<body>
<table>
<tr>
<td> This is an HTML File of Arjun </td>
</tr>
<tr>
<td> Arin Patel </td>
</tr>
</table>
</body>
</html>

Current Output:

<table>
<tr>
<td> This is an HTML File of Arjun </td>
</tr>
<tr>
<td>
 
<span class="diff-html-removed" previous="first-diff" changeId="removed-diff-0" next="last-diff"> </span><span class="diff-html-removed" id="removed-diff-0" previous="first-diff" changeId="removed-diff-0" next="last-diff">Arin Patel </span>
 
</td>
</tr>
</table>


Is it possible to get a response in a format similar to below?

One list object with the contents of diff-html-removed type of differences
  • In the above example the list should contain just Arin Patel
Another list object with the contents of diff-html-added type of differences
 
etc..

Any help in this regard is much appreciated.

Thanks,
Ravi 

Kostis Kapelonis

unread,
Oct 24, 2013, 1:44:14 PM10/24/13
to dais...@googlegroups.com
Already discussed here
https://code.google.com/p/daisydiff/issues/detail?id=18

Apparently this seems to be a very common request for DaisyDiff

Has anybody done something like this in their private repo? Perhaps
you wish to share it with the mainline of DaisyDiff

Kostis
> --
> You received this message because you are subscribed to the Google Groups
> "DaisyDiff" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to daisydiff+...@googlegroups.com.
> To post to this group, send email to dais...@googlegroups.com.
> Visit this group at http://groups.google.com/group/daisydiff.
> For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages