I have a xml file which has array attributes and normal attribute. I need to store these array attributes and normal values into a postgresql table.
-<sample-test>
<BookerNo>50105</BookerNo>
<Type>
<V Idx="1">A</V>
<V Idx="2">B</V>
</Type>
<Value>
<V Idx="1">50108</V>
<V Idx="2">50158</V>
</Value>
</sample-test>
-<sample-test>
<BookerNo>50106</BookerNo>
<Type>
<V Idx="1">A</V>
<V Idx="2">B</V>
<V Idx="3">C</V>
</Type>
<Value>
<V Idx="1">60108</V>
<V Idx="2">60135</V>
<V Idx="3">60158</V>
</Value>
</sample-test>
Table name sample
col1 col2 col3 col4
1 50105 A 50108
2 50105 B 50158
3 50106 A 60108
4 50106 B 60135
5 50106 C 60158