(self)
| 156 | return self |
| 157 | |
| 158 | def to_string(self): |
| 159 | ns = {"": "http://standards.buildingsmart.org/IDS"} |
| 160 | return etree_tostring(get_schema().encode(self.asdict()), namespaces=ns) |
| 161 | |
| 162 | def to_xml(self, filepath="output.xml"): |
| 163 | ET.register_namespace("", "http://standards.buildingsmart.org/IDS") |