My Oracle Support Banner

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

Last updated on APRIL 30, 2020

Applies to:

Oracle Data Integrator - Version 12.2.1.2.6 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:

<employee>
  <lastname>Admin</lastname>
  <email>XAdmin</email>
</employee>

Expected xml results is:

<employee>
  <firstname></firstname>
  <lastname>Admin</lastname>
  <email>XAdmin</email>
</employee>

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!


In this Document
Symptoms
Cause
Solution
References


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