decodeXML method: Utility class
Syntax
decodeXML(String)
Description
Use this method to decode the following encoded XML characters in the source string:
| Encoded Character | Decoded Character |
|---|---|
|
< |
< (less than) |
|
> |
> (greater than) |
|
& |
& (ampersand) |
|
' |
' (apostrophe) |
|
" |
" (quotation mark) |
Parameters
| Parameter | Description |
|---|---|
|
String |
Specifies the source XML string with encoded characters to be decoded. |
Returns
A string containing the source XML string with encoded characters decoded.
Example
For &i = 1 To &elementList.Len
&valueList = CreateArrayRept("", &pChildTags.Len);
For &j = 1 To &pChildTags.Len
&thisValue = %This.getNodeValue(&elementList [&i], &pChildTags [&j]);
&valueList [&j] = %This.decodeXML(&thisValue);
End-For;
&return_value.Push(&valueList);
End-For;
Related Topics