XML
Synopsis
HELP: Write XML data to memory
TYPE: OBJECT
SYNTAX: XML(METHOD.{},CCSID='str'/DEFAULT/ASCII/EBCDIC/SYSTEM/LOCAL,BOM,KEPBOM,ELF2NL,CHRMODE=STOP/IGNORE/SUBSTITUTE/IDENTITY/TRANSLIT,SUBCHAR[num/SYSTEM...],SYSTABLE=ICONV,USRTABLE='str'/NPAS/SEPA/DELA/DLAX,ONEMAP,COMBINED=NFD/NFC/AUTO/ON/OFF,REPORTFILE='str'/STDOUT/STDERR,COMPRESS.{},ENCRYPT/ENC.{},ENCODE/COD.{},AVSCAN())
Description
Write XML formats FLAM elements containing parsed XML data. The output
is a valid XML document. The output XML can be formatted using 3
different methods:
- STANDARD: The XML document is reconstructed as close to the original XML document as possible.
- PRETTYPRINT: Creates an XML document with indentation suitable for human readability.
- MINIMIZED: Creates a minimized XMl document. Line breaks and whitespace are removed unless they are part of actual character data.
The XML output is encoded in UTF-8 with line feed (0xA) as line
delimiter unless a CCSID is supplied, in which case character conversion
is performed.
Format XML converts FLAM elements containing parsed XML data into an XML
byte stream. The output XML can be formatted using 3 different methods:
- STANDARD: The XML document is reconstructed as close to the original XML document as possible.
- PRETTYPRINT: Creates an XML document with indentation suitable for human readability.
- MINIMIZED: Creates a minimized XMl document. Line breaks and whitespace are removed unless they are part of actual character data.
The XML output is encoded in UTF-8 with line feed (0xA) as line
delimiter unless a CCSID is supplied, in which case character conversion
is performed.
During character conversion, the following options are supported:
- Stop, ignore or substitution of invalid or incomplete characters
- A custom substitution character list
- Different system substitution / transliteration tables
- A user-defined substitution table to override the system tables
- Case management (upper, lower, folding and special casing)
- Transliteration between subsets (mapping) and normalization
- BOM management and automatic detection of character sets
- Reporting of ignored or substituted characters
- Auto detection of charsets
Arguments
SWITCH: KEPBOM - Keep byte order mark for faster conversion