MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / to_string

Method to_string

src/ifctester/ifctester/ids.py:158–160  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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")

Calls 3

asdictMethod · 0.95
get_schemaFunction · 0.85
encodeMethod · 0.45