def			visitNode( self, curNode ):
		" convert the xml tree to a string. "

		s = self.iIndent * ' '
		s += "%s" % (curNode.name)
		if curNode.dictAttributes:
			s += "%s" % (curNode.dictAttributes)
		if curNode.data:
			s += ": %s\n" % (curNode.data)
		else:
			s += "\n"
		self.szString += s
		self.iIndent += 2
		return 0
 convert the xml tree to a string. 
recipes/Python/298721_xml2obj_II/recipe-298721.py