+ def extract_urls(node):
+ tag = get_first_tag(node, 'member-url-resources')
+ urls = []
+ for element in tag.getElementsByTagName('url'):
+ urls.append(element.firstChild.nodeValue.replace("&", "&"))
+ return urls
+
+ def extract_birthday(node):
+ tag = get_first_tag(node, 'date-of-birth')
+ bday = None
+ if tag:
+ month = extract(tag, 'month')
+ day = extract(tag, 'day')
+ year = extract(tag, 'year')
+ if month and day:
+ bday = '%s/%s' % (extract(tag, 'month'), extract(tag, 'day'))
+ if year:
+ bday = '%s/%s' % (bday, year)
+
+ return bday
+