FF schema help

I am trying to crate a FF shcema to parse this file with 2 records, with “HDR” marking the beginning of each:

HDRM0TXN BLAH860OUT
BEG00CP489000 3
CURUSD
HDR CANNOT READ THIS
BEG
CURYEN

The only way I got it to partially work is to set the Record Parser to “Delimiter”, with Record set to “Carriage Return and Line feed”. But the problem is that I will return errors on the second HDR.

Thoughts?
Thanks.

Declare the HDR record to have a max repeat value greater than one. If the HDR can appear unlimited # of times then make the max repeat unlimited.

Then make certain that the BEG and CUR records are children of the HDR record.

Chris