import xml.etree.ElementTree as ET

tree = ET.parse('raw_sms.xml')
root = tree.getroot()

for child in root.findall('sms'):
    addressList = [ attr.text for attr in child.findall('value') if attr.attrib[ 'name' ] == 'address' ]
    for address in addressList:
        if not address:
            # Found guilty....
            for attr in child.findall('value'):
                print attr.tag , attr.attrib , attr.text
