Skip to content

Mapping is unable to handle inconsistent use of conceptual container elements in source DDI-XML

Created by: yytosi

Applies to both DDI-C and DDI 1.2.2. Nesstar.

Mapping is unable to handle DDI-XML (DDI 2.5 and DDI 1.2.2 Nesstar) which contains inconsistent use of conceptual elements. For instance the following structure for anlyUnit::

<anlyUnit>Description for analysis unit.                                        
  <concept>concept.of.analysis.unit</concept>                                   
</anlyUnit>                                                                     
<anlyUnit>Description for another analysis unit.</anlyUnit>                     

Will be interpreted as::

[{'analysis_unit': 'concept.of.analysis.unit',                                  
 'description': 'Description for analysis unit.',                               
 'language': 'en'}]                                                             

Will mark this as minor, since XML is usually generated programmatically and therefore should not contain such inconsistencies.