extracting the component names from SVN changes xml file

Hi All,

The following is the sample xml which is generated by a tool called HUDSON when ever change occurs in SVN(Sub version namespace).

In the given XML , path/paths tags ll be vary depends on no.of changes.

now , my requirement is, need a script which can extract the payment and balance names out of this xml which is located in side the hudson home directory and the same needs to be update in another file.

This xml ll be in one location.

<?xml version="1.0" encoding="UTF-8" ?> 
- <log>
- <logentry revision="2087">
<author>antony@gmail.com</author> 
<date>2010-04-30T08:41:11.083067Z</date> 
- <paths>
<path action="D">/trunk/sample/payment/build.properties</path> 
</paths>
<msg /> 
</logentry>
- <logentry revision="2088">
<author>antony@gmail.com</author> 
<date>2010-04-30T08:41:48.057671Z</date> 
- <paths>
<path action="A">/trunk/sample/payment/build.properties</path> 
</paths>
<msg /> 
</logentry>
- <logentry revision="2089">
<author>antony@gmail.com</author> 
<date>2010-04-30T08:42:04.911227Z</date> 
- <paths>
<path action="D">/trunk/sample/balance/build.properties</path> 
</paths>
<msg /> 
</logentry>
- <logentry revision="2090">
<author>antony@gmail.com</author> 
<date>2010-04-30T08:42:30.863455Z</date> 
- <paths>
<path action="A">/trunk/sample/balance/build.properties</path> 
</paths>
<msg /> 
</logentry>
</log>

actually am not sure like how to read an xml file to get a value of a perticular tag using shell script. so,Please if any one can help me out on the same.

thanks in advance

I get no clue by your description. No idea which the balance and payment names are in this excerpt. Best post an example of the wanted output.