I have an xml with the following type of content
<DATA>
<CUSTOMER>
<BASIC_INFO>
<F_NAME>TOM<F_NAME>
<M_NAME>AND<M_NAME>
<L_NAME>HANKS<L_NAME>
</BASIC_INFO>
<ADDITIONAL_INFO>
<EMAIL>TOM.HANKS@GMAIL.COM</EMAIL>
<PHONE_NO>22211132</PHONE_NO>
</ADDITIONAL_INFO>
</CUSTOMER>
<CUSTOMER>
<BASIC_INFO>
<F_NAME>TOM<F_NAME>
<L_NAME>HANKS<L_NAME>
</BASIC_INFO>
<ADDITIONAL_INFO>
<EMAIL>TOM.HANKS@GMAIL.COM</EMAIL>
</ADDITIONAL_INFO>
</CUSTOMER>
<CUSTOMER>
<BASIC_INFO>
<F_NAME>TOM<F_NAME>
</BASIC_INFO>
<ADDITIONAL_INFO>
<PHONE_NO>22211132</PHONE_NO>
</ADDITIONAL_INFO>
</CUSTOMER>
I want to store the information of a customer in the table with columns as F_NAME,M_NAME,L_NAME,PHONE_NO,EMAIL and each value should go in the respective column
Now the point to be noted is that for the customers for which some information is not there for them the value in the table should not be inserted.