Skip to main content
The PSV connector converts Pipe-Separated Values (PSV) files into XML and generates PSV files from XML.

Key Capabilities

  • Bidirectional PSV/XML conversion with configurable delimiters and encoding
  • Header detection and custom column mapping capabilities
  • Support for various character encodings and special character handling

Overview

Connector Configuration

This section contains all of the configurable connector properties.

Settings Tab

Configuration

Settings related to the connector Id and description.

Connector Settings

Settings related to the core operation of the connector.

Other Settings

Settings not included in the previous categories.

Sample Files Tab

Advanced Tab

Message

Logging

Miscellaneous

Automation Tab

Automation Settings

Performance

Alerts Tab

SLAs Tab

Converting PSV to XML

ファイルが XML に変換されると、生成される XML は次の構造になります。
元のファイルの各行(レコード)は、ルート要素 Items の子になります。すべてのレコード要素の名前は、コネクタ設定で設定された Record Name オプションによって決定されます。各レコード要素は、入力ファイルの各行の値に対応する子要素を持ちます。 一部の ファイルには、ファイル内の値にコンテキストを提供するヘッダー情報の行が含まれています。First line is header information 設定が有効になっている場合、このヘッダー行が解析され、解析されたヘッダーが値要素(レコード要素の子)の要素名として使用されます。それ以外の場合、値要素には field_0field_1 のような汎用的な名前が付けられます。

Converting XML to PSV

XML を ファイルに変換するには、入力 XML が「フラット」な構造になっている必要があります。これは、Items ルート要素を除いた XML 構造の深さが2であることを意味します。次に例を示します。
XML は次のように解釈されます。
  • ルート要素の子は、生成されるファイルのレコード(行)として扱われます
  • 各レコード要素の子は、各行の値として扱われます
First line is header information オプションが有効になっている場合、値にコンテキストを提供するために、各値要素の名前を含むヘッダー行が、生成される ファイルに挿入されます。上記の例では、このヘッダー行は titleyearruntime で構成されます。

PSV Transformation: Using the XML Map Connector

Macros

Examples