From The Compiler, 9 Years ago, written in Python.
Embed
  1. class ESIFile:
  2.     """ Represents the device profile part of an ESI XML file """
  3.  
  4.     dicttree = etree.Element("Dictionary")           # <Dictionary>
  5.     dttree = etree.SubElement(dicttree, "DataTypes") #  <Datatypes />
  6.     objtree = etree.SubElement(dicttree, "Objects")  #  <Objects />
  7.                                                      # </Dictionary>
  8.  
  9.     bitsizes = {}
  10.  
  11.     def __init__(self):
  12.         """ Does nothing so far """
  13.         pass