BeanIO のテンプレート セクションを読んでいますが、テンプレートを含む外部ファイルに固有のものは見つかりませんでした。基本的に、すべてのテンプレートを保持し、他のファイルから特定のテンプレートを参照する xml ファイルを作成しようとしています。
このファイル mytemplates.xml があります
<beanio>
<template name="theTemplate">
//template fields
</template>
</beanio>
myfile.xml という別のファイルがあり、mytemplates.xml のテンプレートを使用します。
<beanio>
<stream name="aaa" format="fixedlength">
<include template="theTemplate"/>
</stream>
</beanio>
これを達成する方法はありますか?