Creating Simple Schemas

You might need a schema for an exchange variable that is not stored in the project. The Create button in the Exchange Schema field opens a simplified schema editor dialog that you can use to create basic schemas. The simplified schema editor creates and stores the XSD file for the schema you create in the specified location in the project.

Procedure

  1. Use the three fields of the simplified schema editor.
    • Schema: the structure of the schema. Use the buttons to add, move, and delete schema elements. Only elements can be created using this editor. If you must add attributes or create types, use the XSD editor in TIBCO Business Studio. Table 4 describes each of the buttons in the Schema field.
    • Resource Name: the name of the schema to create.
    • Workspace Location: the location in the workspace where the schema will be stored. Use the Browse button to locate a folder in another workspace.
  2. Use the buttons for creating schema elements.
    Button Description

    Adds a group to the schema. You can specify a name for the group and the type of group from one of these options:

    • sequence in order—the elements in the group must appear in the order in which they are specified in the schema.
    • choice of one—the group is a choice group where only one of the elements in the group can appear at a time.
    • all in any order—all elements contained in the group can appear in any order.
    Adds a complex element to the schema that can contain other elements. You can specify a name for the complex element, a type (from another stored schema), and the minimum and maximum number of occurrences of the element.
    Adds a primitive element to the schema. You can specify a name for the primitive element, a primitive type (string, integer, and so on), the minimum number of occurrences, and the maximum number of occurrences of the element.

    Adds a reference element. A reference element refers to a top-level element, allowing elements to be reused by reference. References in other schema resources are automatically maintained using imports.

    Note: The Simplified Schema Editor does not support duplicate namespaces. The assumption is that a given namespace is only imported once, and is associated with a single prefix.
    Moves the currently selected element up one position in the schema.
    Moves the currently selected element down one position in the schema.
    Deletes the currently selected element.
  3. After creating a schema, click OK to save the schema to the project.