Dear java gurus,

Here is my problem:
I need to generate 30 input string-pairs to the Jaro-Winkler algorithm(determines how similar two strings are, I have already implemented this) and I had this idea of using an xml file as input. The xml for the first inputs:

<list>
<pair>
<name>Favorittenstrasse</name>
<name>Fav.strasse</name>
</pair>
<pair>
<name>Josephgasse</name>
<name>Josefgasse</name>
</pair>
.
.
</list>

Or maybe this is not the smartest way to evaluate the algorithm for 30(!!) inputs? Or if it is, how do I proceed now? Can java read each pair and give me a value for them so that i can print it out in the console?
I'm looking forward and would appreciate any suggestion!!

Kind regards
A beginner