#NEWLINE# def getCS5uninstallXML( optionXMLfile ) : #NEWLINE# #INDENT# 'Gets the uninstall deployment data from a CS5 installer' #NEWLINE# xml = '' #NEWLINE# dom = minidom . parse ( optionXMLfile ) #NEWLINE# DeploymentInfo = dom . getElementsByTagName ( 'DeploymentInfo' ) #NEWLINE# if DeploymentInfo : #NEWLINE# #INDENT# for info_item in DeploymentInfo : #NEWLINE# #INDENT# DeploymentUninstall = info_item . getElementsByTagName ( 'DeploymentUninstall' ) #NEWLINE# if DeploymentUninstall : #NEWLINE# #INDENT# deploymentData = DeploymentUninstall [ 0 ] . getElementsByTagName ( 'Deployment' ) #NEWLINE# if deploymentData : #NEWLINE# #INDENT# Deployment = deploymentData [ 0 ] #NEWLINE# xml += Deployment . toxml ( 'UTF-8' ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return xml