Hi Yatin,
welcome to the JavaRanch
It depends on the size of this project if it's worth the effort, but if your schema doesn't change too often one possible, more or less elegant solution could be to use JAXB which can help to create a complete Java object model to represent possible XML document in memory (but with typed classes for each node instead of generic DOM elements) and marshal/unmarshal to and from XML.
Additionally you could annotate this same class/object model to use JPA as O/R mapper which in turn can auto-generate the database schema from this object model an persist a unmarshalled XML document directly into a relational database.
If the schema changes you would have to step through the auto-generation process or modify the class model by hand. But on the other hand you would most probably have to do adapt your application with other solutions as well after a change to the schema.
Marco