beautypg.com

Graphic display xml file structure – Rockwell Automation FactoryTalk View Site Edition Users Guide User Manual

Page 672

background image

F

ACTORY

T

ALK

V

IEW

S

ITE

E

DITION

U

SER

S

G

UIDE

D–4

• •

Graphic display XML file structure

The graphic display XML file is an FactoryTalk View XML document that describes the
objects and settings for a graphic display. The root element of the XML document is
called gfx. It represents the graphic display.

An XML document can contain only one root element. All other elements must be
contained within the beginning and end markers of the root element.

In an XML document, the start of an element is marked this way:

The end is marked this way:

The syntax for specifying an attribute for an element is:

attribute=“value”

The attribute value must be enclosed in single or double quotes. You can specify multiple
attributes for an element. For example, the caption element contains 13 possible attributes.

Elements for group objects begin with:

<group name>

and end with:

The element contains all the elements and attributes for each object in the group.

Here is a sample structure for a graphic display XML document containing two graphic
objects. Animations, Connections, and States are all group objects.

For more information about graphic object elements and their attributes, see Help.

Element

Description

Root element.

Contains attributes from the Display Settings dialog box
in the Graphic Displays 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.