There was an error while loading. Please reload this page.
from mtdConstructionDBTools import mtdcdb xml = mtdcdb.root() attr = [{ 'NAME': 'attr1', 'VALUE': 'val1' },{ 'NAME': 'attr2', 'VALUE': 'val2' } ] aPart = mtdcdb.part('01234567890123', 'type', batch = 'a batch', attributes = attr) xml.append(aPart) xmlstring = mtdcdb.mtdxml(xml) print(xmlstring)