Modifying exported xml files, Saving xml files in notepad, Testing xml files – Rockwell Automation FactoryTalk View Site Edition Users Guide User Manual
Page 670

F
ACTORY
T
ALK
V
IEW
S
ITE
E
DITION
U
SER
’
S
G
UIDE
D–2
• •
•
•
•
FactoryTalk View creates XML files for the selected graphic displays, in the location
you specify. In the same location.
Modifying exported XML files
When you modify an XML graphic display file, you can make changes to objects that
already exist in the display or you can add additional objects.
When you import the file back into FactoryTalk View, the revised file overwrites the
previous XML file, so the changes you have made are visible when you open the display
in FactoryTalk View.
When you import the file you specify whether you are importing changes or new objects.
You can’t do both actions in a single import operation.
It is recommended that you use Notepad to edit XML files.
Saving XML files in Notepad
Save XML files created or modified in Notepad, using either the UTF-8 or UTF-16 file
format. Notepad’s Unicode file type corresponds to UTF-16 file format.
For files containing strings in English or other Latin-based languages, UTF-8 is
recommended, to reduce the size of the XML file. For other languages such as Chinese,
Japanese, or Korean, UTF-16 is recommended.
The first line of every XML file contains XML version and encoding attributes. Make
sure the encoding attribute matches the format that you are going to use when you save
the file.
For example, if the original file was saved in UTF-8 format and you plan to save it in
UTF-16 format, make sure the first line specifies
encoding=”UTF-16”
Testing XML files
An XML file must be well-formed to be imported. To find out whether your XML file is
well-formed, test it.
FactoryTalk View also creates a file called BatchImport_Application name.xml. Use this file to
import several displays at once. To import a different set of displays than you exported,
modify the list of displays names in the BatchImport_Application name.xml file.
If you include attributes for an object whose name does not match one of those in the graphic
display, those attributes are not imported. Attributes for all other objects in the file whose names
do match the ones in the graphic display are imported.