Skip to content

IterTres15Python

anna-dodd edited this page Jun 3, 2015 · 1 revision
headerTREs = record.header.getXHD()
for tre in headerTREs:
    print ' --- TRE [%s] ---' % tre.getTag()
    for fieldname, field in tre:
        print "%s(%s) = '%s'" % (fieldname, field.getLength(), str(field))
Clone this wiki locally