Rockwell Automation FactoryTalk View Machine Edition Users Guide User Manual
Page 626

F
ACTORY
T
ALK
V
IEW
M
ACHINE
E
DITION
U
SER
’
S
G
UIDE
H-4
• •
•
•
•
In an XML document, the start of an element is marked <element name>. The end is
marked </element name>.
If the element contains no subelements, the end can be marked />. For example, <caption
fontFamily=“Arial” fontSize=“8” bold=“false” />.
The syntax for specifying an attribute for an element is attribute=“value”. The attribute
value must be enclosed in single or double quotes.
Here is a sample structure for a graphic display XML document containing two graphic
objects. The second object has states:
Element
Description
<gfx>
Root element.
<displaySettings />
Contains attributes from the Display Settings dialog box in
the Graphics editor.
<object1>
Contains attributes from the General and Common tabs in
the object’s Properties dialog box, as well as elements for the
object’s caption, image, animation, and connections.
<caption
/>
Contains
attributes for the object’s caption.
<imageSettings />
Contains attributes for the object’s image.
<animations>
Contains
an
animation
element for each type of animation
set up for the object.
<animateVisibility />
Contains attributes for Visibility animation.
<animateColor />
Contains attributes for Color animation.
</animations>
Indicates the end of the animations element.
<connections>
Contains a connection element for each connection assigned
to the object.
<connection name= “Value” /> Contains attributes for the Value connection.
<connection name= “Indicator”
/>
Contains attributes for the Indicator connection.
</connections>
Indicates the end of the connections element.
</object1>
Indicates the end of the object1 element.
<object2>
Contains attributes from the General and Common tabs in
the object’s Properties dialog box, as well as elements for the
object’s states and connections.