I try to map a schema using the following sample data. The dataset is described as follows:
currency
date
record ID
quantity
amount
narratives
blank line
The problem I had is
- the line of narratives varies;
- no tag cannot be used for currency.
USD
090115
990282.00499.03363
1
4.88
2 items in NOS
EUR
090115
990282.00499.03363
3
7.48
1 items in CVS
4 items in NOS
I was able to create a schema for your document by creating a "MainRecord", whose parent has a delimiter of two CRLFs. This then has the child elements of your individual lines, the last one of which is itself a record that is delimited by CRLF.
Note that I validated this in Visual Studio, but not in an actual BizTalk application - probably would require some additional tweaks to get fully operational, but this should get you going in the right direction of how to set up the schema in broad strokes.