The READ command is used to parse and load XML documents.
When the READ command is executed, the following steps occur:
- The service determines the encoding to apply to the received byte content (of the XML document) to convert it to Unicode content. The default action is to auto-detect the encoding of the XML source. Autodetect will determine the encoding from the XML declaration encoding, for example <?xml version="1.0" encoding="UTF-8"?>.
- The service converts the Unicode content to a UTF-8 byte content and parses the content into a document object.
- The service determines if the Unicode data needs to be archived.
Syntax:
Command | Keyword | Value | Developer notes |
|---|
READ | FILE | value | Required. File path. |
ENCODING | value | Optional. Refer to ENCODING for more complete information on this keyword. |
*AUTODETECT | Default. |
ARCHIVE | value | Optional. Refer to ARCHIVE for more complete information on this keyword. |
Example
READ FILE(/folder/file.xml)