Examples of Nillable Attribute and Null Properties Settings
These examples illustrate the effect of the following properties on concept serialization:
tibco.be.schema.nil.attribs tibco.be.schema.exclude.null.props
If Null Properties are Excluded
tibco.be.schema.nil.attribs= true or false tibco.be.schema.exclude.null.props=true
Suppose a Customer concept instance has no value for its CustomerName property. By default, the CustomerName property is excluded from the XML output. The output might look like the following:
<CustomerID>111</CustomerID> <Country>Japan</Country> <City>Tokyo</City>
If null properties are excluded when concepts are serialized, the tibco.be.schema.nil.attribs
property has no effect on concept serialization.
If Null Properties are Included and the Nillable Attribute is Set
tibco.be.schema.nil.attribs=true tibco.be.schema.exclude.null.props=false
The output for the Customer concept instance shown above would be as follows, where there is no value for the CustomerName
element in the concept instance:
<CustomerID>111</CustomerID> <Country>Japan</Country> <City>Tokyo</City> <CustomerName xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
If Null Properties are Included and the Nillable Attribute is not Set
tibco.be.schema.nil.attribs=false tibco.be.schema.exclude.null.props=false
In this case, each null property is considered to be an empty string, and is represented, for example, as follows:
<CustomerName/>