Print Page as PDF
MXMLUTL ICR (4153)

MXMLUTL    ICR (4153)

Name Value
NUMBER 4153
IA # 4153
DATE CREATED 2003/07/15
CUSTODIAL PACKAGE TOOLKIT
CUSTODIAL ISC San Francisco
USAGE Supported
TYPE Routine
DBIC APPROVAL STATUS APPROVED
ROUTINE MXMLUTL
NAME MXMLUTL
GENERAL DESCRIPTION
Utility API's to help when building XML messages.
STATUS Active
ID MXMLUTL
COMPONENT/ENTRY POINT
COMPONENT/ENTRY POINT COMPONENT DESCRIPTION VARIABLES
$$XMLHDR
This extrinsic function returns a standard extensible
markup language (XML) header for encoding XML messages.  Example:
>S X=$$XMLHDR^MXMLUTL
>W X
<?xml version="1.0" encoding="utf-8" ?>
$$SYMENC(str)
This extrinsic function replaces reserved XML symbols
in a string with their XML encoding for strings used in an extensible markup
language (XML) message.

Output: Returns the input string with XML encoding replacing reserved XML
symbols.

Example:

>S X=$$SYMENC^MXMLUTL("This line isn't &""<XML>"" safe as is.")
>W X
This line isn&apos;t &amp;&quot;&lt;XML&gt;&quot; safe as is.
VARIABLES TYPE VARIABLES DESCRIPTION
str Input
String to be encoded for an XML message.
DATE ACTIVATED 2011/05/13