STR2XMLDATA

Usage

TIBCO iProcess Workspace (Browser)

TIBCO iProcess Workspace (Windows)

Converts a text string such that it is suitable for embedding in an XML document. For example, it converts any XML special characters such as ' " & < or > to the XML escape sequences in the format &xxx;.

See XMLDATA2STR to reverse the process.

Syntax

STR2XMLDATA (text)

where:

text is the text string to be operated upon.

The following table lists the characters and their corresponding converted value.

Character

Converted to

&

&amp;

<

&lt;

>

&gt;

"

&quot;

'

&apos;

Returns

The modified text string.

Examples

STR2XMLDATA (“PREBILL <> 1 AND PAPERWORK = 'Y' AND COMPANY = \"Smith & Smith\" AND SW_STARTEDDATE > !2002/02/02!”)

returns "PREBILL &lt;&gt; 1 AND PAPERWORK = &apos;Y&apos; AND COMPANY = \&quot;Smith &amp; Smith\&quot; AND SW_STARTEDDATE &gt; !2002/02/02!"