how to store xml tag values in database using java : I have written a code to read an xml file without specifying tagnames. I have used getElementBytagname(*) which reads every tag and give me output. But now i want to insert those tag values in database columns. For eg. Suppose i have a tagname <merchantId>101</merchantId> this value need to be stored in database column name as merchantId. Can somebody please help me out?