Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Traceback (most recent call last):
- File "/Users/bulat/Downloads/python228/main1.py", line 7, in <module>
- dat1.write('new.xml', rent)
- File "/Users/bulat/Downloads/python228/dataxml.py", line 70, in write
- f.write(dom.toprettyxml(encoding="utf-8"))
- File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/xml/dom/minidom.py", line 59, in toprettyxml
- self.writexml(writer, "", indent, newl, encoding)
- File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/xml/dom/minidom.py", line 1796, in writexml
- node.writexml(writer, indent, addindent, newl)
- File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/xml/dom/minidom.py", line 870, in writexml
- node.writexml(writer, indent+addindent, addindent, newl)
- File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/xml/dom/minidom.py", line 860, in writexml
- _write_data(writer, attrs[a_name].value)
- File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/xml/dom/minidom.py", line 305, in _write_data
- data = data.replace("&", "&").replace("<", "<"). \
- AttributeError: 'int' object has no attribute 'replace'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement