You can test-parse sample data
against your DFDL message model by using
the DFDL Test Perspective.
Before you start:
Create or open a DFDL schema file.
You can use the DFDL Test Perspective to test-parse sample
data against your selected DFDL message, to verify that the DFDL schema
is correct.
- Open the DFDL schema that you want to test.
- In the DFDL schema editor, expand the Messages section.
- Select the message that you want to test.
- Click Test parse model, or right-click
the message that you want to test and click Test parse
model. The Test Parse Model window
opens.
- In the Parser Input section, select
the location of the input data that you want to test-parse:
- If you have not previously serialized a test message:
- Select Content from the file...
- In the Input file name field, enter the
location of your input data file, or click Browse to
locate it.
- If you have previously serialized a test message, select from
the following options:
- Select Content from the file... to
test-parse the contents of an input file, as described in the previous
step.
- Select Content from 'DFDL
Test - Serialize' view to test-parse the data that
is displayed in the DFDL Test - Serialize view.
- Enter Runtime encoding options as
required.
- Optional: Select Validate data against
schema to check for validation errors.
- Click OK, and confirm that you want
to open the DFDL Test Perspective.
- The DFDL Test Perspective opens,
and the results of your test-parse are displayed in the DFDL
Test - Parse view.
- You can view a log of parser actions in the DFDL Test
- Trace view.
- You can view the logical instance in the DFDL Test
- Logical Instance view, as a tree, or as XML.