Databases Reference
In-Depth Information
•
Message Element Name:
Specify the XML element whose child elements
or attributes are the ones used for XML to the Data Object mapping.
•
Column Value:
Choose
Element Tag
if the data are stored in sub elements.
Choose
Attribute
if the data are stored in attributes.
Pre-processing is also required to transform the message
consumed from JMS sources from a complex structure (XML
elements with hierarchies) to a flat structure (a single level
XML fragments) that can then be mapped to Data Object
fields. You will see an example in
Chapter 5
, .
Suppose that EMS receives the following messages from a JMS Queue:
<Inventory xmlns="http://www.packtpub.com/5443/samples/inventory">
<ProductID>1</ProductID>
<WarehouseID>101</WarehouseID>
<InventoryLevel>200</InventoryLevel>
</Inventory>
The
XML Formatting
configuration should look as follows: