Creating XSD Files from DTD Files

If the PIP package you download from RosettaNet contains only DTD schemas and you prefer to use XSD schemas for PIP document validation during RosettaNet transactions, you must convert the DTD schemas in the PIP package into XSDs. The creation of the XSD file is a two-step process. Because the DTD does not fully specify all of the constraints specified in the Message Guide, a direct translation of DTD to XSD is not sufficient; manual editing is required after the DTD-XSD translation. The recommended tool to generate a XSD from the DTD is TIBCO XML Authority™.

Follow the steps below to perform the translation. Basic understanding of XML Schema data types is required.

Procedure

  1. Start TIBCO XML Authority.
  2. Open the DTD file.
  3. Export the DTD file as an XSD file.

After you have successfully generated the XSD file, use TIBCO XML Authority to update

the XSD file. You can also use your favorite editor to perform this task. Typically, you perform the following steps:

  1. Update Fundamental Business Data Entities that are part of the RosettaNet Message Guideline document.
  2. Update Enumerated Values that are specified in the Message Guideline document for specific fields under the “Guideline Information” section.
  3. Add additional types from the “Fundamental Business Data Entities” section if needed by this PIP.
  4. Define new types that will hold an enumerated list of values for fields that needenumerated types. This step has to be done manually.