WebSphere Message Brokers
File: ad00791_
Writer: Terry Cowling

Concept topic

This build: July 31, 2007 21:21:40

MRM XML physical format: NULL handling

The purpose of null handling is to specify how messages will deal with null values, that is, the absence of a meaningful value for an element. Null properties for the MRM XML physical format are set for the message set only, and apply to all the defined objects within the message set, using the four properties Encoding Null Num, Encoding Null Non-Num, Encoding Null Num Val and Encoding Null Non-Num Val.

The purpose of these parameters is to specify how messages deal with null values. In an XML message there are several options. Most obviously an element could simply omit a value, for example:
<element1></element1>
Alternatively, the element could include a distinctive value that means that no real value is present, for example.
<element1>null</element1>

The properties Encoding Null Num and Encoding Null Non-Num specify the style of null handling, for example, that null is represented by an empty element.

The properties Encoding Null Num Val and Encoding Null Non-Num Val provide a value (if needed) to represent a null value. For an element of type string, this might be null or unspecified while for a number it might be 0 or 0.0.

Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2007Copyright IBM Corporation 1999, 2007. All Rights Reserved.
This build: July 31, 2007 21:21:40

ad00791_ This topic's URL is: