import xml.dom.minidom
doc = xml.dom.minidom.parse('test.hfp')
str_xml = doc.toprettyxml()
filexml = open('test.hfp', 'w')
filexml.write(str_xml)
filexml.close()

1c36b6b40aa21255ba46f956780a795642299abf
<mask token>

<mask token>
filexml.write(str_xml)
filexml.close()

<mask token>
doc = xml.dom.minidom.parse('test.hfp')
str_xml = doc.toprettyxml()
filexml = open('test.hfp', 'w')
filexml.write(str_xml)
filexml.close()

import xml.dom.minidom
doc = xml.dom.minidom.parse('test.hfp')
str_xml = doc.toprettyxml()
filexml = open('test.hfp', 'w')
filexml.write(str_xml)
filexml.close()
