Write XML File

Operation name

Write XML File

Function overview

Writes input data to an XML file.

Data model

The data model of this component is XML type.

Properties

= Remarks =

For details on use of variables, refer to Variables.

Basic settings

Item name

Required/Optional

Use of variables

Description

Remarks

Name

Required

Not available

Enter a name that is used on the script canvas.

 

Input data

Required

Not available

Select a component on the script canvas.

 

Required settings

Item name

Required/Optional

Use of variables

Description

Remarks

File

Required

Available

Enter the path to XML files.

The Browse button launches a file chooser that allows you to select a file.

Note

Specify an absolute path of HULFT Square Storage for the file path.

With the exception of the path separator "/", the Restricted characters of HULFT Square Storage can't be used.

Property actions

Item name

Description

Remarks

Preview

The previewer is started, and the contents of the file specified in File is displayed.

  • Disabled when the specified file doesn't exist or a variable is set in File.

  • The contents are displayed with the encoding specified in Encoding.

  • The contents of the file can't be edited.

  • The maximum file size that can be displayed in the previewer is 1MB. If the file size exceeds 1MB, the contents up to 1MB from the beginning of the file will be displayed.

Write settings

Item name

Required/Optional

Use of variables

Description

Remarks

Encoding

Required

Available

Select or enter an encoding for the file to write.

When you enter encoding, specify one of the encodings supported in Java SE Runtime Environment 8.

= Remarks =

For details, refer to "Supported Encodings" (http://docs.oracle.com/javase/8/docs/technotes/guides/intl/encoding.doc.html).

  • The default value is "UTF-8".

Overwrite

Optional

Not available

If the specified file exists, select whether to allow to overwrite it or not.

Selected

(Default)

Allow.

Not selected

Don't allow. When the file already exists, an error occurs.

 

Indent

Optional

Not available

Select whether you want to indent.

Selected

(Default)

Perform indentation.

Not selected

Don't perform indentation.

 

Output type

Item name

Required/Optional

Use of variables

Description

Remarks

Type

Required

Not available

Select the output file format.

XML

(Default)

HTML
XHTML

 

Specify DTD

Optional

Not available

Select whether to specify a DTD.

Selected

Specify a DTD.

Not selected

(Default)

Don't specify a DTD.

  • If XHTML is selected in Type, this is selected and can't be edited

Public identifier

Optional

Available

Enter the public identifier.

  • Enabled when XML is selected in Type, and Specify DTD is selected.

System identifier

Required

Available

Enter the system identifier.

  • Enabled when XML is selected in Type, and Specify DTD is selected.

Overwrite DTD

Optional

Not available

Select whether to overwrite the DTD.

Selected

Overwrite the DTD.

Not selected

(Default)

Don't overwrite the DTD.

  • Enabled when XML is selected in Type, and Specify DTD is selected.

DTD

Optional

Not available

Select the DTD.

  • When you select HTML in Type

    HTML 4.0.1 Strict DTD
    HTML 4.0.1 Transitional DTD
    HTML 4.0.1 Frameset DTD
  • When you select XHTML in Type

    XHTML 1.0 Strict DTD
    XHTML 1.0 Transitional DTD
    XHTML 1.0 Frameset DTD

  • Enabled when HTML or XHTML is selected in Type, and Specify DTD is selected.

Transaction

Item name

Required/Optional

Use of variables

Description

Remarks

Execute transaction processing

Required

Not available

Select whether or not to execute transaction processing.

Selected

Transaction processing will be executed.

Not selected

(Default)

Transaction processing won't be executed.

= Remarks =

For details, refer to Transactions for the connectors in the File category.

 

Comment

Item name

Required/Optional

Use of variables

Description

Remarks

Comment

Optional

Not available

You can write a short description of this connector.

 

Schemas

Input schema

Depends on the data to write.

Output schema

None.

Loading schema in Mapper

The schema needs to be loaded manually.

Specify the schema of the data to be written.

= Remarks =

For details, refer to Edit Schema.

Transaction

Transaction is supported.

 

Transaction is enabled only when Execute transaction processing of Transaction is selected.

Parallel Stream Processing

PSP isn't supported.

Available component variables

Variable name

Description

Remarks

message_category

When an error occurs, the category of the message code corresponding to the error is stored.

  • The default value is null.

message_code

When an error occurs, the code of the message code corresponding to the error is stored.

  • The default value is null.

message_level

When an error occurs, the severity of the message code corresponding to the error is stored.

  • The default value is null.

error_type

When an error occurs, the error type is stored.

  • The default value is null.

  • The format of the error type is as follows.

    Example: java.io.FileNotFoundException

error_message

When an error occurs, the error message is stored.

  • The default value is null.

error_trace

When an error occurs, the trace information for the error is stored.

  • The default value is null.

Message codes, exception messages, and limitations

Connector

Message code

Exception message

Limitations

Messages and limitations of the XML connector

check

check

check