The attached Perl script, join_tables.pl is used to join all SMART Folders in a draft into a single folder.

Usage:
	% perl join_tables.pl <input draft XML> <output draft XML>

The script will put all jobs defined in the draft under the first defined SMART Folder.
RBCs used by jobs will be renamed, and defined under the SMART Folder, to prevent duplicate RBC names.

Limitations:
* Input draft may not use any job container other than SMART folder.
  Sub folders, and non-SMART Folders will produce unexpected results.

* The script is not QA tested. Testing was done only for drafts produced by version 8.0.04 of the conversion tool.

