XML Script logo
Renaming elements and attributes
Code
<_data >
<foo attr1="fred" attr2="barney" />
</_data>
Before rename: <_process element="foo" />
<_rename item="foo" newname="bar" />
After element rename: <_process element="bar" />
<_rename item="bar.attr1" newname="attr0" />
After attribute rename: <_process element="bar" />
Output
Before rename: <foo attr1="fred" attr2="barney" />

After element rename: <bar attr1="fred" attr2="barney" />

After attribute rename: <bar attr0="fred" attr2="barney" />
Ref

x.5301

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