Home » Developer & Programmer » JDeveloper, Java & XML » Generate XML for table definiton (Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production)
Generate XML for table definiton [message #660319] Tue, 14 February 2017 15:12 Go to previous message
dba_vijay
Messages: 11
Registered: February 2009
Junior Member
Hi Experts
I am trying to generate XMLs of table definitions.
I know how to use functions like XMLGEN for e.g. select dbms_xmlgen.getxml('select * from data_files') xml from dual;

But I want the describe table command output in an xml.
for example

Every tag below is a column in a table.

<?xml version="1.0" encoding="UTF-8"?>
<DOC_ID> 1</DOC_ID>
<COPY_ID> 1</COPY_ID>
<COPY_NUMBER> 1</COPY_NUMBER
<FORM_ABF> 1</FORM_ABF>
<FORM_TYPE> 1</FORM_TYPE>
<BILLING> 1</BILLING>
<CREATED_BY> 1</CREATED_BY>
<CREATED_DT> 1</CREATED_DT>
<UPDATED_BY> 1</UPDATED_BY>
<UPDATED_DT> 1</UPDATED_DT>

All inputs are appreciated.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Calling Java function from pl/sql
Next Topic: Converting XML Data to Rows.
Goto Forum:
  


Current Time: Tue Apr 23 16:29:13 CDT 2024