def getNodeText(nodelist):
	"""
	Meant to be used with nodelists that have zero or one elements.
	Returns the text content of the first element, if it exists.
	"""
	if len(nodelist) > 0:
		return nodelist[0].text
	return ""