Creating XML Schema from EDIFACT Messages

 

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

Stylus Studio Enterprise Edition 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 271. 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.

XML-DEV Discussion Forum

XML-DEV is a leading technical forum for XML discussion and a valuable free XML learning resource. Subscribe to the XML-DEV email discussion forum today to help further your XML education.

Scientific, Photo & Control Equipment

Scientific, photo & control equipment companies hear clicks and beeps all day. But, when it comes to data integration it needs to be done in a flash, that's why they use Stylus Studio. Come see which top companies are seeing XML in a brand new light!

Apache AXIS

Develop and test Web service applications using Apache AXIS and Stylus Studio.

XML Schema Quality Checker

Use IBM's alphaWorks XML Schema Quality Checker to check the quality and style of your XML schema documents. Fully integrated with the Stylus Studio XML Schema Editor and XML validator.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member