Can you give more info on the process on using <include uri="foo.xml" /> to put descriptor logic in external files ?
Using v 0.6.5 I cannot seem to get this to work ...maven giving unsupported import type error
The doc in section 4.3.2 is sparse.
what are the required contents of the external file ? can foo be any valid text ? must /should it be a <generate>.....</generate> bracketing ? does it need full xml headers of any sort ?
I've tried a variety of obvious permutations here but can't seem to get this to function as doc'ed in section 4.3.2 in particular. Most obvious below but I've tried others.
THIS benerator.xml
<?xml version="1.0" encoding="UTF-8"?>
<setup xmlns="http://databene.org/benerator/0.6.5"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://databene.org/benerator/0.6.5 benerator-0.6.5.xsd"
defaultEncoding="Cp1252"
defaultDataset="US"
defaultLocale="en_US"
defaultLineSeparator="\r\n">
<import defaults="true"/>
<include uri= "foo.xml"/>
</setup>
and THIS foo.xml:
<generate type="Person" count="10" consumer="ConsoleExporter">
<id name="identifier" type="long" generator="new IncrementalIdGenerator(100)"/>
<attribute name="active" type="boolean" constant="true"/>
<attribute name="firstName" type="string" values="'Alice','Bob','Charly'"/>
<attribute name="rank" type="int" values="1,2,3,4,5,6"/>
<comment> Here we reach the critical part ...</comment>
<attribute name="salutation" type="string" pattern=" (Mr|Mrs)\. " />
<attribute name="postalCode" type="string" pattern="[1-9][0-9]{4}"/>
</generate>
or THIS foo.xml:
<setup xmlns="http://databene.org/benerator/0.6.5"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://databene.org/benerator/0.6.5 benerator-0.6.5.xsd"
defaultEncoding="Cp1252"
defaultDataset="US"
defaultLocale="en_US"
defaultLineSeparator="\r\n">
<import defaults="true"/>
<generate type="Person" count="10" consumer="ConsoleExporter">
<id name="identifier" type="long" generator="new IncrementalIdGenerator(100)"/>
<attribute name="active" type="boolean" constant="true"/>
<attribute name="firstName" type="string" values="'Alice','Bob','Charly'"/>
<attribute name="rank" type="int" values="1,2,3,4,5,6"/>
<comment> Here we reach the critical part ...</comment>
<attribute name="salutation" type="string" pattern=" (Mr|Mrs)\. " />
<attribute name="postalCode" type="string" pattern="[1-9][0-9]{4}"/>
</generate>
</setup>
Both fail.
Help please.
