XML Script logo
Using delete with sub-content stipulation
Code
<_data >
<obj thing="foo" />
<obj thing="bar" />
<obj thing="wibble" />
<obj thing="blort" />
</_data>
<_delete item="obj{.thing == 'bar'}" />
Second element is now # obj[2].thing #.
Output

Second element is now wibble.
Ref

x.2203

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