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
marked .
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
Root element.
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.
/>
Contains
attributes for the object’s caption.
Contains attributes for the object’s image.
Contains
an
animation
element for each type of animation
set up for the object.
Contains attributes for Visibility animation.
Contains attributes for Color animation.
Indicates the end of the animations element.
Contains a connection element for each connection assigned
to the object.
/> Contains attributes for the Indicator connection. 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.