I'm trying to use DIH to import data from an XML source I do not maintain. This XML has optional elements grouped as attributes, for example color or flavor. Not all entities have all the attributes, which is perfectly fine and valid. Sadly, DIH skips these entities when I still want them. This is my data-config.xml
<dataConfig>
<dataSource type="FileDataSource" name="datasource"/>
<document>
<entity
name="files"
processor="FileListEntityProcessor"
baseDir="C:\\"
fileName="recipe_page.*xml"
recursive="false"
rootEntity="false"
dataSource="null">
<entity
name="file"
processor="XPathEntityProcessor"
url="${files.fileAbsolutePath}"
forEach="/results|/results/recipe"
stream="true"
transformer="TemplateTransformer">
<field column="recipe_id" xpath="/results/recipe/recipeID" />
<field column="recipe_title" xpath="/results/recipe/recipeTitle" />
<field column="color" xpath="/results/recipe/attributes/Color" default="" />
<field column="drink_classification" xpath="/results/recipe/attributes/DrinkClassification" default="" />
<field column="flavor" xpath="/results/recipe/attributes/Flavor" default="" />
<field column="uid" template="recipe_${file.recipe_id}" />
<field column="document_type" template="recipe" />
</entity>
</entity>
</document>
</dataConfig>
How can I tell DIH to ignore missing elements or set default values for these at least?