Generating a Template
- Copy and rename the starter.map file.
- Edit the new map file for your location and import requirements.
- At a command prompt in the Contenta_home/bin directory, issue the generate command.
For example, assuming that the document you want to import is named much_ado.xml and your map file is named play.map:
perl di.pl -c d:/Contenta/encaps/di/MapFiles/play.map -e d:/tmp/errlog -m 5
A play.map file is created with 5 mapping rules and placed in the top level ../di directory.
- Check/edit the new map file to ensure desired mapping rules were created.
- Move the file to the MapFiles directory, replacing the template map file you created in steps 1 and 2 above.