Fusion Applications: HOW TO: Remove Empty Elements from XML Output Generated by BI Publisher (Doc ID 2098658.1)

Last updated on FEBRUARY 04, 2016

Applies to:

Oracle Fusion Applications Common Components Cloud Service - Version N/A and later
Information in this document applies to any platform.

Goal

We need to remove all the empty fields from the header of the XML file generated by the Trial Balance Report of Electronic Accounting. For instance given the following snippet of a XML file:


<?xml version="1.0" encoding="UTF-8"?>
<xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Version="1.1" Value1="Value1" Value2="Value2" Value3="Value3" Value4="" Value5="" Value6="" Value7="">

After removing the empty fields, the same file will look like:

<?xml version="1.0" encoding="UTF-8"?>
<xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Version="1.1" Value1="Value1" Value2="Value2" Value3="Value3">


 

Solution

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 hundreds of Community platforms