StreamIN samples > Creating RecordIN samples

Creating RecordIN samples
For RecordIN data, you can generate a sample file automatically from the description file. If the description file is only available as a resource, you must first extract it to file.
Example 7
<?xml version="1.0" ?>
<strsdictionary version="2.0" name="RecordIN">
<field id="INVOICE_Record_id"/>
<field id="INVOICE_Invoice_no"/>
<field id="INVOICE_Your_ref"/>
<block id="Invoice">
<field id="ARTICLE_Record_id"/>
<field id="ARTICLE_Pos_no"/>
<field id="ARTICLE_Item"/>
<field id="ARTICLE_Price"/>
<block id="Text">
<field id="ARTICLE_TEXT_Record_id"/>
<field id="ARTICLE_TEXT_Description"/>
</block>
</block>
<field id="AMOUNT_Record_id"/>
<field id="AMOUNT_Currency"/>
<field id="AMOUNT_To_pay"/>
<field id="FREETEXT_Record_id"/>
<field id="FREETEXT_Free_text"/>
</strsdictionary>
 
The description file does not indicate whether a record is recurring or not. This means that you may have to edit the sample to make sure that the fields and blocks complies to the input data structure.
To create a sample
1
2
In the StreamIN tool, select Tools > SXD Converter. The SXD converter dialog box opens.
3
In Dictionary source, browse to and select the description file.
4
In SXD target, browse to and select the SXD resource you created.
5
Click OK. The sample is created in the SXD resource.
You can now load the SXD resource as a sample in the StreamIN tool.
OpenText StreamServe 5.6 Updated: 2013-03-01