Target namespaces

You can add a property to an event type to specify a target namespace that is used in the XSD file to export.

By default, when you define an event type, a target namespace is created in the model based on the name of the BOM project: http://www.ibm.com/ia/xmlns/default/<bom_project_name>/model. This target namespace is used in the XSD file that you generate from the model. The default namespace is the same for all events. You can define a specific namespace by adding the property 'xsd.targetNamespace'.

The following syntax defines a target namespace:

['xsd.targetNamespace': "<namespace_url>"]

Example

In the following example, the property indicates the namespace for a flight departure event.

a flight departure event is a business event [ 'xsd.targetNamespace' : "http://model.acme.com/flightdeparture" ] time-stamped by a departure time.