Chapter 6 Working With Concepts : Generating XML Schemas (XSD files) for Concepts and Events

Generating XML Schemas (XSD files) for Concepts and Events
The Generate Schema utility lets you export concepts and events to XML Schema Definition (XSD) files, one per entity, in a specified location. The files use the same folder structure as the project from which they are exported. In addition, _BaseConcept.xsd and _BaseEvent.xsd are generated in the root of the selected directory.
XML schemas are used for interoperability between BusinessEvents and third party tools or SOA platforms that use well-defined XML for message communication, transformation, and validation.
In the XSD files, concepts are represented as follows:
Determining How Null Concept Property Values are Handled  A TIBCO Designer property determines whether the xsd:nillable attribute is set on all elements in concept XSD files. See Enabling Use of the Nillable Attribute for details.
To Generate an XML Schema (XSD File)
1.
From the TIBCO Designer window menu bar, go to Tools > BusinessEvents Tools > Generate Schema. The Schema Generator dialog displays.
 
2.
3.
Select the Override BusinessEvents Namespace checkbox to specify a different namespace.
Provide a different namespace to avoid conflicts with the source concepts and events. If you do not provide a namespace, the default BusinessEvents namespace is used. (BusinessEvents events and concepts have a hidden schema.) If the source entities and generated schema files are in the same folders, use of the default BusinessEvents namespace results in a namespace conflict. In this case, you must provide a namespace.
4.
In the Select Resources panel, select Concepts or Events or both. Schemas for all concepts or all events in the project (or both) are generated accordingly.
5.
Click OK.
6.
In all cases, an informational message in the confirmation dialog warns that generating schema in the current project with BusinessEvents namespace will result in conflicts. Click Yes to continue.
The XSD files for the selected resources (all concepts, all events, or both) are generated in subdirectories of the selected directory. Subdirectory names match the project folders. The _BaseConcept.xsd and _BaseEvent.xsd files are generated in the root of the selected directory.