def parseEntries(entriesNode):

    entriesAttrDict = dict(entriesNode.attributes.items())

    entries = Entries()
    entries.minLabel = entriesAttrDict.get('minLabel', '')
    entries.maxLabel = entriesAttrDict.get('maxLabel', '')
    entries.colormapentries = []

    for entryNode in entriesNode.getElementsByTagName("ColorMapEntry") :

       entryAttrDict = dict(entryNode.attributes.items())

       cmEntry = ColorMapEntry()

       #t required, but defaults to false
       if 'transparent' in entryAttrDict :
          cmEntry.transparent = entryAttrDict['transparent']
       else:
          cmEntry.transparent = False

       #t required, but defaults to false
       if 'nodata' in entryAttrDict :
          cmEntry.nodata = entryAttrDict['nodata']
       else:
          cmEntry.nodata = False

       cmEntry.rgb = entryAttrDict.get('rgb', '')
       cmEntry.value = entryAttrDict.get('value', '')
       cmEntry.sourceValue = entryAttrDict.get('sourceValue', '')
       cmEntry.label = entryAttrDict.get('label', '')
       cmEntry.ref = entryAttrDict.get('ref', '')

       entries.colormapentries.append(cmEntry)

    return entries

## END Parse Entries ##


## START Parse Legend ##
dataset/ETHPy150Open nasa-gibs/onearth/src/scripts/colorMaptoHTML.py/parseEntries/original