code: function mapStructures (structures) {
    var result = [];
  
    if (structures === undefined) return result;
  
    _getElementChildNodes(structures).forEach(function (c) {
      _getElementChildNodes(c).forEach(function (s) {
        if ((s.localName === undefined) || (s.localName === null)) return;
  
        var handler = {
          'Categorisation': mapSimpleMaintainable,
          'CategoryScheme': mapItemScheme,
          'Dataflow': mapSimpleMaintainable,
          'AgencyScheme': mapItemScheme,
          'Codelist': mapItemScheme,
          'ConceptScheme': mapItemScheme,
          'HierarchicalCodelist': mapHierarchicalCodelist,
        }[s.localName];
  
        if (handler === undefined) {
          console.log('No mapping for ' + s.localName);
        } else {
          result.push(handler(s));
        }
      });
    });
  
    return result;
  }
docs: ------------------------------------------------------------------------------