If you want to keep the full quality, I would use MakeMKV - for movie DVDs, tick just the main video title + audio + subtitles (if wanted), and for TV DVDs, make each episode into a separate MKV file.
Or, you could use Handbrake if you wanted to compress them to reduce filesize (I've not used it, so not sure whether you'd need to use both MakeMKV and Handbrake, or can just use Handbrake)
Whatever you choose - just bear in mind how XBMC prefers files to be stored/named to give the greatest compatibility with scrapers & fanart etc.
Or, you could use Handbrake if you wanted to compress them to reduce filesize (I've not used it, so not sure whether you'd need to use both MakeMKV and Handbrake, or can just use Handbrake)
Whatever you choose - just bear in mind how XBMC prefers files to be stored/named to give the greatest compatibility with scrapers & fanart etc.