Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Work Tasks

SFU​.encodeXmlValue()

  • Last UpdatedAug 06, 2024
  • 1 minute read

Use encodeXmlValue() method to encode all characters in the XML value.

The following characters in the XML value are encoded as follows:

XML Value

Encoded Value

&

&

'

'

"

"

<

&lt;

>

&gt;

Syntax

sRetVal = SFU.encodeXmlValue(string);

Parameters

Parameter

Description

string

String to be encoded.

Return Value

This method returns a string value.

Example

// Encode XML value.

SFU.encodeXmlValue("\"Developer's\" Guide");

//"Developer's" Guide is encoded as &quot;Developer&apos;s&quot; Guide.

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in