Not able to convert the RDF to RTF for cross tab layout

Hello All,

I have a RDF, which has cross tab layout. For this I need to create RTF template.
I have the XML file. I'm not able to get the cross tab report in RTF as RDF.
Below is the part of XML data.

Pleaes let me know how do i achive this.
--------------------------------------------------------------------------------
<?xml version="1.0" ?>
- <!--  Generated by Oracle Reports version 6.0.8.27.0
  -->
- <XXAQS_EXPENSE_COST_DIV>
- <LIST_G_CS_1>
- <G_CS_1>
- <LIST_G_2>
- <G_2>
  <DEPT>11100</DEPT>
- <LIST_G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>501010000</ACCOUNT>
  <DESCRIPTION>Salaries</DESCRIPTION>
- <LIST_G_AMOUNT>
- <G_AMOUNT>
  <AMOUNT>100126</AMOUNT>
  </G_AMOUNT>
  </LIST_G_AMOUNT>
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>501020000</ACCOUNT>
  <DESCRIPTION>Overtime</DESCRIPTION>
- <LIST_G_AMOUNT>
- <G_AMOUNT>
  <AMOUNT>14811</AMOUNT>
  </G_AMOUNT>
  </LIST_G_AMOUNT>
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>501030000</ACCOUNT>
  <DESCRIPTION>Bonus</DESCRIPTION>
- <LIST_G_AMOUNT>
- <G_AMOUNT>
  <AMOUNT>28968</AMOUNT>
  </G_AMOUNT>
  </LIST_G_AMOUNT>
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>502000000</ACCOUNT>
  <DESCRIPTION>Allowance</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>502010000</ACCOUNT>
  <DESCRIPTION>Food Allowance</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>502020000</ACCOUNT>
  <DESCRIPTION>Housing Allowance</DESCRIPTION>
- <LIST_G_AMOUNT>
- <G_AMOUNT>
  <AMOUNT>15612</AMOUNT>
  </G_AMOUNT>
  </LIST_G_AMOUNT>
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>502030000</ACCOUNT>
  <DESCRIPTION>School Fees Allowance</DESCRIPTION>
- <LIST_G_AMOUNT>
- <G_AMOUNT>
  <AMOUNT>1249</AMOUNT>
  </G_AMOUNT>
  </LIST_G_AMOUNT>
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>502040000</ACCOUNT>
  <DESCRIPTION>Other Allowance</DESCRIPTION>
- <LIST_G_AMOUNT>
- <G_AMOUNT>
  <AMOUNT>1873</AMOUNT>
  </G_AMOUNT>
  </LIST_G_AMOUNT>
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>503000000</ACCOUNT>
  <DESCRIPTION>Sales Incentive and Commissions</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>503010000</ACCOUNT>
  <DESCRIPTION>Sales Incentive</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>503020000</ACCOUNT>
  <DESCRIPTION>Sales Commissions</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>504000000</ACCOUNT>
  <DESCRIPTION>Employee Expenses</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>504010000</ACCOUNT>
  <DESCRIPTION>Vacation Pay</DESCRIPTION>
- <LIST_G_AMOUNT>
- <G_AMOUNT>
  <AMOUNT>8636</AMOUNT>
  </G_AMOUNT>
  </LIST_G_AMOUNT>
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>504020000</ACCOUNT>
  <DESCRIPTION>Air Tickets</DESCRIPTION>
- <LIST_G_AMOUNT>
- <G_AMOUNT>
  <AMOUNT>5265</AMOUNT>
  </G_AMOUNT>
  </LIST_G_AMOUNT>
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>504030000</ACCOUNT>
  <DESCRIPTION>End of Service</DESCRIPTION>
- <LIST_G_AMOUNT>
- <G_AMOUNT>
  <AMOUNT>26367</AMOUNT>
  </G_AMOUNT>
  </LIST_G_AMOUNT>
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>504040000</ACCOUNT>
  <DESCRIPTION>Medical Expenses</DESCRIPTION>
- <LIST_G_AMOUNT>
- <G_AMOUNT>
  <AMOUNT>15441</AMOUNT>
  </G_AMOUNT>
  </LIST_G_AMOUNT>
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>504050000</ACCOUNT>
  <DESCRIPTION>Contract Labour</DESCRIPTION>
- <LIST_G_AMOUNT>
- <G_AMOUNT>
  <AMOUNT>2500</AMOUNT>
  </G_AMOUNT>
  </LIST_G_AMOUNT>
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>504060000</ACCOUNT>
  <DESCRIPTION>Recruitment Expenses</DESCRIPTION>
- <LIST_G_AMOUNT>
- <G_AMOUNT>
  <AMOUNT>0</AMOUNT>
  </G_AMOUNT>
  </LIST_G_AMOUNT>
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>504070000</ACCOUNT>
  <DESCRIPTION>Visas Expenses</DESCRIPTION>
- <LIST_G_AMOUNT>
- <G_AMOUNT>
  <AMOUNT>1625</AMOUNT>
  </G_AMOUNT>
  </LIST_G_AMOUNT>
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>504080000</ACCOUNT>
  <DESCRIPTION>Drivers Liscencs</DESCRIPTION>
- <LIST_G_AMOUNT>
- <G_AMOUNT>
  <AMOUNT>0</AMOUNT>
  </G_AMOUNT>
  </LIST_G_AMOUNT>
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>504090000</ACCOUNT>
  <DESCRIPTION>Traveling Expenses</DESCRIPTION>
- <LIST_G_AMOUNT>
- <G_AMOUNT>
  <AMOUNT>2601</AMOUNT>
  </G_AMOUNT>
  </LIST_G_AMOUNT>
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>504090100</ACCOUNT>
  <DESCRIPTION>Traveling Food</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>504090200</ACCOUNT>
  <DESCRIPTION>Traveling Car Rent</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>504090300</ACCOUNT>
  <DESCRIPTION>Traveling Hotel</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>504090400</ACCOUNT>
  <DESCRIPTION>Traveling Taxi</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>504090500</ACCOUNT>
  <DESCRIPTION>Traveling Telephones</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>504100000</ACCOUNT>
  <DESCRIPTION>Gratuity Pay</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>505000000</ACCOUNT>
  <DESCRIPTION>Permits and Liscenses</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>505010000</ACCOUNT>
  <DESCRIPTION>Permits and Liscenses - Iqama Expense</DESCRIPTION>
- <LIST_G_AMOUNT>
- <G_AMOUNT>
  <AMOUNT>0</AMOUNT>
  </G_AMOUNT>
  </LIST_G_AMOUNT>
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>505020000</ACCOUNT>
  <DESCRIPTION>Permits and Liscenses - Car Registration Renewal</DESCRIPTION>
- <LIST_G_AMOUNT>
- <G_AMOUNT>
  <AMOUNT>0</AMOUNT>
  </G_AMOUNT>
  </LIST_G_AMOUNT>
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>505030000</ACCOUNT>
  <DESCRIPTION>Permits and Liscenses - MVPI</DESCRIPTION>
- <LIST_G_AMOUNT>
- <G_AMOUNT>
  <AMOUNT>0</AMOUNT>
  </G_AMOUNT>
  </LIST_G_AMOUNT>
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>505040000</ACCOUNT>
  <DESCRIPTION>Company License</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>505045000</ACCOUNT>
  <DESCRIPTION>Permits and License Drivers License</DESCRIPTION>
- <LIST_G_AMOUNT>
- <G_AMOUNT>
  <AMOUNT>0</AMOUNT>
  </G_AMOUNT>
  </LIST_G_AMOUNT>
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>505050000</ACCOUNT>
  <DESCRIPTION>Permits and licenses-Others</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>506000000</ACCOUNT>
  <DESCRIPTION>Director's Remunerations</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>507000000</ACCOUNT>
  <DESCRIPTION>Audit Fees</DESCRIPTION>
- <LIST_G_AMOUNT>
- <G_AMOUNT>
  <AMOUNT>10866</AMOUNT>
  </G_AMOUNT>
  </LIST_G_AMOUNT>
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>508000000</ACCOUNT>
  <DESCRIPTION>Legal Fees</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>509000000</ACCOUNT>
  <DESCRIPTION>Professional Fees</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>510000000</ACCOUNT>
  <DESCRIPTION>Communication Expenses</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>510010000</ACCOUNT>
  <DESCRIPTION>Communication Expenses - Telephone</DESCRIPTION>
- <LIST_G_AMOUNT>
- <G_AMOUNT>
  <AMOUNT>748</AMOUNT>
  </G_AMOUNT>
  </LIST_G_AMOUNT>
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>510020000</ACCOUNT>
  <DESCRIPTION>Communication Expenses - Telefax</DESCRIPTION>
- <LIST_G_AMOUNT>
- <G_AMOUNT>
  <AMOUNT>51</AMOUNT>
  </G_AMOUNT>
  </LIST_G_AMOUNT>
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>510030000</ACCOUNT>
  <DESCRIPTION>Communication Expenses - Postage</DESCRIPTION>
- <LIST_G_AMOUNT>
- <G_AMOUNT>
  <AMOUNT>0</AMOUNT>
  </G_AMOUNT>
  </LIST_G_AMOUNT>
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>510040000</ACCOUNT>
  <DESCRIPTION>Communication Expenses - Mobile</DESCRIPTION>
- <LIST_G_AMOUNT>
- <G_AMOUNT>
  <AMOUNT>175</AMOUNT>
  </G_AMOUNT>
  </LIST_G_AMOUNT>
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>510050000</ACCOUNT>
  <DESCRIPTION>Communication expense – Satellite Connectivity</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>511000000</ACCOUNT>
  <DESCRIPTION>Stationery</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>511010000</ACCOUNT>
  <DESCRIPTION>Printing and Stationary</DESCRIPTION>
- <LIST_G_AMOUNT>
- <G_AMOUNT>
  <AMOUNT>0</AMOUNT>
  </G_AMOUNT>
  </LIST_G_AMOUNT>
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>511011000</ACCOUNT>
  <DESCRIPTION>IT Expense</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>512000000</ACCOUNT>
  <DESCRIPTION>Supplies</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>512010000</ACCOUNT>
  <DESCRIPTION>Operating Supplies</DESCRIPTION>
- <LIST_G_AMOUNT>
- <G_AMOUNT>
  <AMOUNT>3385.796</AMOUNT>
  </G_AMOUNT>
  </LIST_G_AMOUNT>
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>512020000</ACCOUNT>
  <DESCRIPTION>Lubricants Supplies</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>513000000</ACCOUNT>
  <DESCRIPTION>Rental Expenses</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>513010000</ACCOUNT>
  <DESCRIPTION>Rental Expenses - Housing</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>513020000</ACCOUNT>
  <DESCRIPTION>Rental Expenses - Warehouses</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>513030000</ACCOUNT>
  <DESCRIPTION>Business Promotion - Rental Signage</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>513040000</ACCOUNT>
  <DESCRIPTION>Rental Expenses - Vending Machines</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>513050000</ACCOUNT>
  <DESCRIPTION>Rental Expenses - Municipality</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>513051000</ACCOUNT>
  <DESCRIPTION>Rental Expenses - Signage</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>513060000</ACCOUNT>
  <DESCRIPTION>Rental Expenses - Other</DESCRIPTION>
- <LIST_G_AMOUNT>
- <G_AMOUNT>
  <AMOUNT>0</AMOUNT>
  </G_AMOUNT>
  </LIST_G_AMOUNT>
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>514000000</ACCOUNT>
  <DESCRIPTION>Motor Vehicle Expenses</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>514010000</ACCOUNT>
  <DESCRIPTION>Motor Vehicle Expenses - Repairs and Maintenance</DESCRIPTION>
- <LIST_G_AMOUNT>
- <G_AMOUNT>
  <AMOUNT>883.381</AMOUNT>
  </G_AMOUNT>
  </LIST_G_AMOUNT>
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>514020000</ACCOUNT>
  <DESCRIPTION>Motor Vehicle Expenses - Fuel and Oil</DESCRIPTION>
- <LIST_G_AMOUNT>
- <G_AMOUNT>
  <AMOUNT>50</AMOUNT>
  </G_AMOUNT>
  </LIST_G_AMOUNT>
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>514030000</ACCOUNT>
  <DESCRIPTION>Motor Vehicle Expenses - Rep and Maint - Outside Job Orders</DESCRIPTION>
- <LIST_G_AMOUNT>
- <G_AMOUNT>
  <AMOUNT>150</AMOUNT>
  </G_AMOUNT>
  </LIST_G_AMOUNT>
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>514040000</ACCOUNT>
  <DESCRIPTION>Motor Vehicle Expenses - Others</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>515000000</ACCOUNT>
  <DESCRIPTION>Insurance</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>515010000</ACCOUNT>
  <DESCRIPTION>Insurance - Fire Insurance</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>515020000</ACCOUNT>
  <DESCRIPTION>Insurance - Workmen Compensation</DESCRIPTION>
  <LIST_G_AMOUNT />
  </G_ACCOUNT>
- <G_ACCOUNT>
  <ACCOUNT>515030000</ACCOUNT>
  <DESCRIPTION>Insurance - Fidility Insurance</DESCRIPTION>
- <LIST_G_AMOUNT>
- <G_AMOUNT>
  <AMOUNT>900.61</AMOUNT>
  </G_AMOUNT>


---------------------------------------------------------------------------------
amutallibkhanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

amutallibkhanAuthor Commented:
why this question is not answered? Why ignored ?

Please answer it.
0
amutallibkhanAuthor Commented:
I got the solution.

I have created a custom temp table, and did insert into this table, in after p form trigger.
This avoided having 3 groups, when it was before.
This simplified the XML data, to build the PIVOT Table.

Thanks.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
amutallibkhanAuthor Commented:
Thanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Enterprise Software

From novice to tech pro — start learning today.