mc-dir.pl is a tool for converting a directory with xml documents into one xml file suitable for Tamino massload utility inoxmld    --  version 1.0 by   Jan Harmsen    08-January-2002

mc-dir.pl is no official Software AG product, please read mc-dir.pl for further information

mc-dir.pl has been tested in conjunction with Tamino 2.3.1 / Tamino 3.1 on SuSE Linux / Win2K.


Watch out:
The Tamino massloader inoxmld consumes approximately 10 times the space of the raw xml data as temporary working space !!
If your index is large, even more space is needed.
To massload 200MB of XML data you will need at least 2 GB of temporary working space !!


instructions for massloading XML documents with mc-dir.pl and inoxmld



  picture of a folder containing xml documents of the same doctype

1. Prepare xml documents for conversion:

  • Put the XML documents into one folder, e.g. mc-directory

  • The XML documents must be of the same doctype, i.e. they must have the same root element ! Furthermore all restrictions of Tamino massload utility apply.

  • All documents must be well-formed xml documents,i.e. they must contain only one root element:
    <xml version="1.0" encoding="ISO-8859-1">
    <root_element> .... content .... </root_element>

 
  picture showing mc-dir.pl converting a directory with xml documents into one xml massload file

2. Convert documents with mc-dir.pl

  • Make sure that perl is installed.
    For MS Windows perl is available for free from www.activstate.com

  • Start massload conversion from command line: mc-dir.pl mc-directory

  • As a result you will get the outputfile mc-directory.xml which can be loaded into Tamino with the massload utility inoxmld.

  • The logfile mc-directory.log contains information about how many xml documents could be successfully included in the output file.

 
  picture showing massload into Tamino with massloader inoxmld

3. Load XML documents into Tamino with massload utility

  • Make sure you know the XML port number of the database. The port number can be found in TaminoManager >> Databases >> Properties

  • Define Tamino schema with Schema editor or Interactive Interface.

  • Load the XML documents with the Tamino massload utility inoxmld into Tamino, e.g.

    inoxmld server=localhost:3204 \
    collection=ccnlpub/CCNLpub input=mc-directory.xml \
    log=mc-directory-log.xml norejects