XML Script logo
Elements - assigning data to
Usage

Data can be assigned to operators using either the _set command, or in interpolations using the assignment operator. Both of these will create the element if it does not exist, but will not create a second instance of an element (use _insert)

When using _set, it is important to note that _set will set the text content of an element only. Including sub-elements between the set tags will not create sub-elements.

Using _set, or the assignment operator, when there are multiple instances of a given element will set all elements, unless an index is given explicitly.

Examples

Using _set to create an element

_set will not create more than one element

Setting multiple elements

Using the assignment operator

Version

1.0

Ref

t.43

Date

29 July 1999

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