Open topic with navigation

TIBCO BusinessEvents® Enterprise Edition 6.3.1

# 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/>

Did you find this helpful?

YesNo
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO BusinessEvents® Enterprise Edition

Copyright © 2004-2024. Cloud Software Group, Inc. All Rights Reserved.