def attrs_to_dict(attrs):
	"""
	Converts a minidom NamedNodeMap that represents the attributes 
	of a node into a dictionary. The keys are attribute names.
	The values are the attributes' string values.
	"""
	return dict([(str(attr.name),attr.value) for attr in attrs.values()])