IPWorks X12 2020 macOS Edition

Questions / Feedback?

InputFormat Property

The format of the input data.

Syntax

public var inputFormat: X12translatorInputFormats {
get {...}
set {...} }

public enum X12translatorInputFormats: Int32 { case xifXML = 0 case xifJSON = 1 case xifX12 = 3 }

Default Value

3

Remarks

This property specifies the format of the input data. The value set here, along with OutputFormat, determines how the data is converted when Translate is called.

Possible values are:

  • 0 (ifXML)
  • 1 (ifJSON)
  • 3 (ifX12)
Before calling Translate, both InputFormat and OutputFormat must be specified. Translation from XML or JSON to EDI and vice versa are supported. If InputFormat is ifXML or ifJSON, OutputFormat must be an EDI format. Similarly, if InputFormat is an EDI format, OutputFormat must be ofXML or ofJSON.

Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks X12 2020 macOS Edition - Version 20.0 [Build 7941]