If you have imported DFDL schema files that were created
outside of the IBM® App Connect Enterprise Toolkit,
you must add the required DFDL annotations for use with IBM App Connect Enterprise.
Before you begin
Before
you start:
Complete the
following task:
About this task
If you want to use a DFDL schema file that has been created
outside of the IBM App Connect Enterprise Toolkit,
you must add the required IBM App Connect Enterprise annotations
before you can use the DFDL schema file in the development of your
message flow applications. You may encounter errors if you use a DFDL
schema file that does not contain the required IBM App Connect Enterprise annotations.
To
add the required IBM App Connect Enterprise annotations
to your DFDL schema file:
Procedure
- In the Application Development view,
right-click the imported DFDL schema file (file extension *.xsd)
that you want to open, and select .
The
DFDL schema file opens in the XML editor.
- Add the namespace xmlns:ibmSchExtn="http://www.ibm.com/schema/extensions" by
completing the following steps:
- In the XML editor, right-click anywhere within your
DFDL schema file and select Edit Namespaces....
The Edit Schema Information window
opens.
- In the Edit Schema Information window,
click Add....
The Add
Namespace Declarations window opens.
- In the Add Namespace Declarations window,
select Specify New Namespace.
- In the Prefix field, enter ibmSchExtn.
In the Namespace Name field, enter http://www.ibm.com/schema/extensions,
then click OK.
- In the Edit Schema Information window,
click OK.
The namespace is added to your DFDL schema file, and the Edit
Schema Information window closes.
- Add the annotation, ibmSchExtn:docRoot="true" to
the top-level element of your message model by completing the following
steps:
- In the XML editor, locate the top-level element of your
message model. Right-click this element and select .
An attribute containing default values
is added to your message model.
- Locate the default attribute that you created in the
last step. Right-click this attribute, and select Edit
Attribute....
The Edit Attribute window
opens.
- In the Name field, enter ibmSchExtn:docRoot.
In the Value field, enter true. Click OK.
The annotation is added to your DFDL schema file, and
the Edit Attribute window closes.
- In the Navigator view, right-click your DFDL schema file
(file extension *.xsd), and select .
The DFDL schema file opens in the
DFDL schema editor.
What to do next
Next:
- You can continue to edit your DFDL schema by using the DFDL schema
editor.
- You can test your message model, see Testing a DFDL schema file.