Skip to Main Content

Analytics Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ODI XML driver doesn't generate XML element with NULL value

archenrootApr 11 2013 — edited Jun 10 2013
Hello,

I generate XML files using ODI 11g. My trouble is following:
In XSD schema I have definition like this, array of similar elements work like the unique key, the integrity is done on the database level:
<element name="Mandatory" minOccurs="1" maxOccurs="1">

When one of those keys comes from database with NULL value, I want to have in the output this:
<Mandatory/>

But the result of ODI is that the element is not generated at all to the XML file.

I tried to switch one tested column in the ODI model XML table to Mandatory, so it means NOT NULL, but the behavior is still the same, what is also confusing, there is incoming NULL value to the field which is set up NOT NULL.
I also tried something like SUBSTR('A',1,0), but as soon as the result is also NULL, it won't work.

Ok, so the point is how to force ODI to generate empty element in XML extract.

Thanks for hints.

Ladislav

Edited by: archenroot on 11.4.2013 5:58
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 8 2013
Added on Apr 11 2013
3 comments
855 views