Converts a character string in XML format into a standard character string.
// Convert a character string in XML format
// into a character string in ANSI format
sAnsiString is string
sAnsiString = XMLToText("X is > than Y")
// sAnsiString contains "X is > than Y"
MyDoc is string
MyDoc = fLoadText("example.xml")
MyResult is string
i is int = 1
MyResult = XMLExtractString(MyDoc, "NAME", i)
WHILE MyResult <> ""
i = i + 1
MyResult = XMLToText(XMLExtractString(MyDoc, "NAME", i))
// In the trace, you can see:
<Result> = XMLToText(<String to convert>)
<Result>: Character string
Character string. The following reserved characters are automatically replaced:
- &amp; becomes &
- &apos; becomes '
- &gt; becomes >
- &lt; becomes <
- &quot; becomes "
<String to convert>: Character string
Character string in XML format to convert.
Business / UI classification: Business Logic