MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/MaterialX / is_well_formed

Function is_well_formed

python/Scripts/mxformat.py:13–18  ·  view source on GitHub ↗
(xml_string)

Source from the content-addressed store, hash-verified

11import MaterialX as mx
12
13def is_well_formed(xml_string):
14 error = ''
15 try:
16 ET.fromstring(xml_string)
17 except ET.ParseError as e:
18 error = str(e)
19
20def main():
21 parser = argparse.ArgumentParser(description="Reformat a folder of MaterialX documents in place.")

Callers 1

mainFunction · 0.85

Calls 1

strClass · 0.85

Tested by

no test coverage detected