XML Script logo
Creating multiple elements, with index variable
Code
<_insert index="idx" location="\Parent" name="Child" quantity="4" >
<attribute name="type" value="" />
<content >
This is element # $!idx #
</content>
</_insert>

# \Parent #
Output

<Child type="" >
This is element 1
</Child><Child type="" >
This is element 2
</Child><Child type="" >
This is element 3
</Child><Child type="" >
This is element 4
</Child>
Ref

x.4403

XML Script homepage | Documentation home | XML Script docs | Command list | Function list | X-Tract docs

X-Stream, X-Tract and XML Script are trade marks of DecisionSoft Limited
© Copyright 1998-2000 DecisionSoft Limited