My Oracle Support Banner

ODI XML Driver Does Not Add Empty Optional Tags when Generating XML File (Doc ID 2662738.1)

Last updated on AUGUST 07, 2024

Applies to:

Oracle Data Integrator on Marketplace - Version 1.0.2 and later
Oracle Data Integrator - Version 12.2.1.2.6 and later
Oracle Data Integrator Cloud Service - Version 17.1.3 and later
Information in this document applies to any platform.

Symptoms

NOTE: In the examples below, the names represent a fictitious sample for clarity. Any similarity to actual environments, past or present, is purely coincidental and not intended in any manner.

The Oracle Data Integrator (ODI) XML Driver does not generate empty or optional tags when creating an XML file from an Oracle Database table.

For example, if there is a table named EMPLOYEE with the following columns and a sample data row: 

EMPLOYEE
COL1:  firstname COL2: lastname COL3: email
<empty> or <NULL> Admin XAdmin

 The generated xml is:  

  

Adding the 'no_closing_tags=true' driver property (to expect the form '<firstname/>' in the event of no value) does not work.  

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.