Integration Engine Solutions to Connect Anything to Anything

Log out?

Text Scrape Processor

Text Scrape Processor – Converts semi-formatted text into an XML stream based on a set of content “markers”.

This processor allows you to take some text content like an e-mail or terminal screen scrape and assign start/end positions for tags – basically, it allows you to parse fixed-location content into XML. The editor is pretty easy to use to get up and running; just load in a formatted e-mail or similar and click substrings for start and end tags.

Processor to Convert Text Scrape to XML Format

Processor (Adapter) Configuration Drop-Down List

Select the Text Scrape from the drop-down and click on Add Processor.
Processor to Convert Text Scrape to XML Format

Click on Add Processor

Basic Text Scrape Processor Configuration Options

On the Basic tab, you can select Text Scrape Configuration or create it. Let’s create it from scratch. Click the Edit button.

Processor to Convert Text Scrape to XML Format

Basic Text Scrape Processor Configuration Options

You can see the Text Scraping Configuration window. Let’s load some sample data. In this example we use simple text file. Click FileOpen Sample.

Processor to Convert Text Scrape to XML Format

Select Open Sample from Text Scraper File Window

We use sample_mail.txt file in this example. If there is no such file when downloaded from the PilotFish site data or tutorial files, you can use any text file instead.

Processor to Convert Text Scrape to XML Format

Click on Open Sample Button in Text Scraper Window

Now you can see text from the sample file in the Text Scraping Configuration window.

Processor to Convert Text Scrape to XML Format

View the Sample Text in the Text Scraping Window

Let’s create start and end markers. Select Hello at the text, click MarkCreate Marker Start. Select Regards at the text, click MarkCreate Marker End.

Processor to Convert Text Scrape to XML Format

Create the Start and End Markers in the Text Scraping Window

We created a simple Text Scraping Configuration. As the default output tag, we have Hello. If you want to change it, just input another tag name to the Tag column.

Processor to Convert Text Scrape to XML Format

Review Output Tags in Text Scraping Example

Let’s look at how output XML looks like. Click the XML Output tab.

Processor to Convert Text Scrape to XML Format

Select the XML Output Tab to View the XML Version of the Text

Also, we can look at the created configuration file. Click XML Config tab.

Then save the created configuration (File – Save Config) and close the Text scraping Configuration window.

Processor to Convert Text Scrape to XML Format

Select the XML Config Tab to View the Created Configuration

Conditional Execution Text Scrape Processor Configuration Options

On the Conditional Execution tab, you can set additional Processor execution conditions. The transaction data dependent condition may be specified here as an enhanced expression. If this expression returns anything other than TRUE (ignore case) – this processor will be skipped. No additional configuration for this Processor is required.

Processor to Convert Text Scrape to XML Format

Conditional Execution Text Scrape Processor Configuration Options

This is a unique website which will require a more modern browser to work! Please upgrade today!