XML Helper

The XML Helper file contains methods that assist in working with XML data.

Loading this Helper

This helper is loaded using the following code:

loadHelper "xml"

The following methods are available:

xmlConvert("string")

Takes a string as input and converts the following reserved XML characters to entities:

Ampersands: &
Less then and greater than characters: < >
Single and double quotes: '  "
Dashes: -

This function ignores ampersands if they are part of existing character entities. Example:

put xmlConvert(tString) into tString