X4 Produktdokumentation

Structured Text Converter

This adapter converts an XML to a text document or a text to an XML document according to the rules of an ASCII descriptor file.

Properties

Operation

Determines which operation the adapter executes

Possible values:

  • TextToXML: Read text document and write it into an XML document

  • XmlToText: Write XML data to a text document

Parameters

DescFile

Name of the ASCII descriptor file that describes the text document in its data structure. The ASCII descriptor file should be stored in the user folder of the X4 repository (e.g. X4DB/1/Project/Descr.ad).

Possible values: Path and file name (e.g. /Project/Descr.ad)

encoding

Character set in which the text document is to be encoded

Possible values:

  • Any character string for a character set (e.g. UTF-8)

  • (empty): Use the character set of the processed XML document (default).

Strict

Determines whether the data stream from the preceding process step must be correspondingly long in order to read the complete structure

Possible values:

  • true: Complete structure must be read

  • false: Data stream can be any length (default)

Status values

1

The operation was executed successfully.

-1

The operation failed due to a technical error.