have a function that sends a search term, xmllist &
content to be searched with indexes at end of each line to
represent item in xmllist. the function then outputs and xmllist of
the found nodes that have the search term in them however if the
the text in the node has two words or more words that are the same
it will add that node however many times that word appears.