XML Script logo
Example of eval function
Code
<_data >
	<foo >subbar</foo>
	<bar >
		<subbar >hoorah</subbar>
	</bar>
</_data>

eval adds the contents of \foo (subbar) onto bar\. Then bar\subbar is evaluated which produces hoorah.
# eval( "bar\\" foo ) #
Output

eval adds the contents of \foo (subbar) onto bar\. Then bar\subbar is evaluated which produces hoorah.
hoorah
Ref

x.6401

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