I am trying to create an xml file that contains formatted information from a Revit model for input into another program, and need to use a python script to create it. I can create an equivalent txt file by using the following commands:
But even after changing the extension to .xml, the file still isn’t recognized as a real xml file. Any thoughts on how properly create an xml file with a python script?
Glad Bakery helped a bit Tony! Will you publish any of your work or code as a custom node? The ET part is that ElementTree is being used as the xml ‘engine’. ElementTree comes with IronPython.
I’d like to integrate some of your XML writing code back into Bakery, if you get it to a nice logical point feel free to reply or email it to me.