Parse to XML Service (com.ibi.agents.XDToXML)

Syntax:

com.ibi.agents.XDToXML

iIT Service Object:

format: Parse to XML

operations: Parse to XML

Description:

This service parses a flat document into an XML document. If the input is already in XML format, this service performs no action. This service is useful if a flat (non-XML) input document has been received and must be converted into XML format for additional processing.

Edges:

The following table lists the available line edges for the Parse to XML Service (com.ibi.agents.XDToXML).

Line Edge

Description

OnError

Error

OnSuccess

Success

OnFailure

Failure

OnCustom

  • OnError
  • OnSuccess
  • OnFailure
  • fail_parse: the output will consist of the original input document.

Example:

In a use case scenario, a response document is received from a web server using an HTTP emitter, which sends a request to the server. When the response is received from the web server, it is unreadable by a File reader until it is converted to XML format. As a result, using the Parse to XML Service is required to convert the message, as shown in the following image.

On success, the output of this process flow is an XML message. If the response cannot be parsed as a valid XML file, an error is returned.