I want to find out if some string has a match in an XML file.
for example:
string test="New York, USA";
in an XML file formated this way:
<?xml version="1.0"?>
<line>
<word>New</word>
<word>York,</word>
<word>USA</word>
</line>
so that every word may or may not be in a different element
What is the most easiest way to do this? I was thinking about matching each word separately while saving the partial results but it seems to me like there have to be easier way.