Creating XML Schema from EDIFACT Messages

 

The EDIFACT to XML Schema document wizard is available only in Stylus Studio XML Enterprise Suite.

Stylus Studio XML Enterprise Suite provides a document wizard that allows you to create XML Schema based on an EDIFACT message, such as the Business Credit Report (BUSCRD) message type.

Setting Wizard Options

In addition to selecting a specific EDIFACT version and message type, Stylus Studio provides the following settings that determine how the XML Schema is generated. You can decide whether or not you want to

  • Include annotations that describe each element.
  • Generate enumerations for fields in the message that have lists of values
  • Substitute "unbounded" for maxOccurs that have a value of 99 or more. Stylus Studio bases maxOccurs values on the loops it detects in the EDIFACT message.

Running the EDIFACT to XML Schema Documentation Wizard

To run the EDIFACT to XML Schema documentation wizard:
1. Select File > Documentation Wizards from the Stylus Studio menu.

The Documentation Wizards dialog box appears.

2. Double-click the EDIFACT to XML Schema icon.

The Create XML Schema from EDIFACT Message Definition dialog box appears.

Figure 264. Create XML Schema from EDIFACT Message Definition

3. If necessary, change the UN/CEFACT version ID. Versions are listed chronologically in ascending order.
4. Change the XML Schema creation options as required. See Setting Wizard Options if you need help with this step.
5. Click OK.

Stylus Studio converts the EDIFACT message you selected in step 3 to XML Schema and opens a new, untitled document in the XML Schema Editor.

 
Free Stylus Studio XML Training: