I have data in a XML file. The format of the XML file is like this
Code:
<employees>
<employee>
<name>rgoti</name>
<empno>2</empno>
….
….
<employee>
<employee>
<name>sganee</name>
<empno>3</empno>
….
….
<employee>
….
….
</employees>
I want to load this data into the Oracle database using Java.How to design and create table and data types for saving this xml in table?.
<employee>tag somewhere?XMLTypecolumn. Or do you want to parse the XML document and store the data in a relational table? If you want to store the data in a relational table, does the table already exist?