xml
trimspace
field Item_id varchar document/item/item_id ''
field Feature_type varchar document/item/feature/type ''
field Feature_name varchar document/item/feature/name ''
my question is: when timport loops through each item, how does $Feature_type get assigned?
Since I'll need to do
<sql "insert into features values (counter, $Item_id, $Feature_type, $Feature_name)">
</sql>
I can't have $Feature_type with value "product product brand".
Repeated items are collected into the field with a newline between each. If you want to denormalize that into multiple records you can use <split> on $Feature_type and $Feature_name and loop over those to insert.