XMLUtilJS - Global

Provides XML utilities for JavaScript to be used with Discovery scripts.

Use this script include in any server-side discovery script where you need XML utilities.

Access these methods using the static variable XMLUtilJS.

XMLUtilJS - escapeForXMLText(String text)

Provides escape text for a given string.

Table 1. Parameters
Name Type Description
text String The text to format.
Table 2. Returns
Type Description
String The formatted text.

XMLUtilJS - stringToValue(String str)

Converts a string to an XML value.

Table 3. Parameters
Name Type Description
str String The string to convert
Table 4. Returns
Type Description
String The specified string converted to XML.

XMLUtilJS - unescapeForXMLText(String text)

Provides un-escaped text for a given string.

Table 5. Parameters
Name Type Description
text String The text to clean up.
Table 6. Returns
Type Description
String The cleaned up string.

XMLUtilJS - valueToString(String XMLvalue)

Converts an XML value to a string.

Table 7. Parameters
Name Type Description
XMLvalue String The XML to convert
Table 8. Returns
Type Description
String The XML value converted to a string.