XML to DB INSERT

Scenario: I have an XML file with many category group of fields. Need to insert each group fields to a different table.
Can anyone let me know the best possible way to do it.