Posted: Fri Mar 02, 2012 12:11 pm Post subject: Initialize XML output message fields for empty elements
Master
Joined: 22 Jun 2009 Posts: 206
Hi All,
I have gone through this forum and info center to find out the way to initialize XML output message fields for empty fields, but no luck....I have done something similar for COBOL messages using the below info I found in developer best practices document.
Code:
Initialize MRM output message fields using MRM null/default rather than ESQL
1. Messageset.mset > CWF>Output Settings>Policy for missing elements -> UseNullValue
2. Cobol import -> Create null values for all fields if initial values not set in Cobol
3. Avoids statements like -> Set OutputRoot.MRM.THUVTILL.IDTRANSIN.NRTRANS = ''
Is there some similar procedure/settings as above for XML messages? It would make my life very relaxed when dealing with big xml messages with a lot of mandatory elements.
An empty XML field should be both mandatory and nillable.
This post had a similar issue, though it's title is a bit missleading: It's not about (extracting) from a DB, but writing out... so the thing you are searching for. _________________ Just use REFERENCEs
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum