def			readXmlFile( szFileName ):
	" Read in the xml file and build a database tree."

	# Parse the xml file.	
	fileParser = xml.sax.make_parser( )
	fileParser.setFeature( xml.sax.handler.feature_namespaces, 0 ) # Turn off namespaces.
	curHandler = xmlHandler( )
	fileParser.setContentHandler( curHandler )
	fileIn = open( szFileName, 'r' )
	fileParser.parse( fileIn )
	fileIn.close( )
	xmlRoot = curHandler.xmlRoot( )
	return xmlRoot
 Read in the xml file and build a database tree.
recipes/Python/298721_xml2obj_II/recipe-298721.py