Searching XML File

Hello

I have an XML file with around 20,000 records. For each record there is an element:

<commons:Country>US</commons:Country>

Now I would like to search through all records and return the country codes ideally in a separate text file…I am using Notepad++

Any ideas on how i can proceed?

thanks in advance,
Andy

programming languages like c# have features such as linq to search xml records.

If you’re familiar with php: http://php.net/manual/en/function.simplexml-load-string.php

Run a foreach loop and check your field, you can then do what you want with that xml segment