Edit xml files, Save xml files in notepad, Test xml files – Rockwell Automation FactoryTalk View Machine Edition Users Guide User Manual

Page 604

Advertising
background image

F

ACTORY

T

ALK

V

IEW

M

ACHINE

E

DITION

U

SER

S

G

UIDE

E-2

• •

The Alarm Import Export Wizard opens.

3. Follow the instructions in the wizard.

For information about using the Alarm Import Export Wizard, see Help.

FactoryTalk View creates a file with the name you specify, in the location you specify.

Edit XML files

We recommend that you use Notepad to edit your XML files.

If you do not want to change a property, you don’t need to include it in the XML file.

Save XML files in Notepad

Save XML files created or edited in Notepad using either 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”.

Test XML files

An XML file must be well-formed to be imported. To find out whether your XML file is
well-formed, test it.

To test an XML file

Open the XML file in Internet Explorer.

If you can see the XML code, your file is well-formed. If the XML code is not well-
formed, Internet Explorer shows an error message.

Advertising