XML-D8 Migration: Very basic migration by just using YML file
As we are working XML to Drupal 8 migration project, so we just want to explore how the very basic migration looks like! We have written a custom module to define mapping between XML data and Drupal 8 entity. Like any other module in D8, we need .info.yml file which looks like below, In the .info.yml file, we have added dependencies for migrate_plus and migrate_tools modules. Migrate Plus module is required to do migration from sources like XML and JSON. Migrate Tools module provides tools for running and managing Drupal 8 migrations. As we are migration from XML so we have created a sample XML file which contains ID, Title and Body fields. It looks like below, Lastly and most importantly, for this very basic migration, we just needed one .yml file in config/install folder for our migration. This .yml file defines Source (XML file and fields in it), Destination (Drupal entity) and Field mappings (Process plugins). It looks like below, We have placed the source XM...