XML Script logo
The _attribute command with a location specified
Code
<_data >

<Forest >
	<Contents number="2" >
		<Tree height="10" species="ash" />
		<Tree height="25" species="oak" />
	</Contents>
</Forest>
</_data>
<_attributes element="Forest\Contents\Tree" location="$Temp" />

# $Temp.__content #
<_delete item="$Temp" />
Output

<Tree ><attribute name="height" value="10" /><attribute name="species" value="ash" /></Tree><Tree ><attribute name="height" value="25" /><attribute name="species" value="oak" /></Tree>

Ref

x.7702

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