Information in the ICM files is stored in Generalized Markup Language (GML). This language is very similar to HTML and XML but with a different syntax. It is a method of specifying a hierarchical set of items or nodes. Each node can also contain data (attributes) that describe the node.
As the data is generic and hierarchical, a special token syntax is required to access the data. You must first isolate the script engine down to one specific node using the FOREACH statement.
One aspect of a FOREACH statement is the ability to specify a token variable name to reference the current node in the for loop. You can do this by using the AS name clause. After the variable name is defined, it can be referenced in a token to get the node's attributes. For example, if the following FOREACH is executed, the NAME attribute on the EXECUNIT can be referred to as {data.NAME}:
{[FOREACH]} EXECUNIT AS data
You can use the Nested FOREACH loops to drill down through the GML hierarchy.
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|