Start Here   Setup   Adapters   Studio   Server   Monitor   Mapping   Scripting   Samples   Index 

XML Generator Task

 Plugin Adapters   Common    XML    HL7    Text    Database    Messaging    Mail    iSeries  
The XML Generator Task is used for creating XML files. The XML file is created based on a specified template: Document Type Definition (DTD) or an XML Schema Definition (XSD), which defines the structure of the document.

Properties

Template URL

This specifies the URL to the template you are using, either DTD or XSD.

Template Type

In order to generate the XML document, this task needs to use one of the selections in this combo box.

DTD: Data Type Definition (DTD)

Schema: XML Schema Definition (XSD)

Write to File

Select this option to write your documents to file. If unselected, this option allows you to format the XML document without writing it to a file.

Automatically-generated file name

If this option is selected, the system will automatically provide a unique name for each file generated, (the number of seconds since Jan. 1, 1970).xml. This helps ensure that files do not get overwritten. However, there is still a chance that a duplicate file might be found. For example, if there are multiple XML Generator tasks running or if a single task is triggered twice within a one-second span, then there could be a collision. Further, it is possible (though unlikely) that a file with a matching name already exists in the target directory when the solution generates a file: there is nothing preventing a file named "91234567.xml" from existing at the moment when exactly 91234567 seconds have passed since Jan. 1, 1970.

Specified file name

If this option is selected, the system will use the file name you specify to name the XML document generated. This option can only be used to generate a single XML document.

XML Path

This specifies the path to the directory where you want to store your XML documents. If you have chosen the "specified name" option, this field should contain the file name and path of the XML document you want to generate.

Collision response

This specifies how the system should react if a duplicate file name is found.

Overwrite: The existing file found.

Cease task execution: The will stop the task. No XML file will be generated.

Rename existing file: Will provide a new name for the file found.

Rename new file: Will provide a new name for the file being generated.

Generate only one document

If selected, this option will create just one XML document. This allows the designer to generate an XML document with the exact format required.

Next: XML Serializer Task

 Start Here   Setup   Adapters   Studio   Server   Monitor   Mapping   Scripting   Samples   Index 

ActiveLink Help - Version 4.1.1
© 2006 ActiveCore Technologies Inc.
activelink@activecore.com