cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Splitting exported XML into separate objects

Splitting exported XML into separate objects

Objects' XML representations can be extracted from IdentityIQ through the IIQ console using the export and checkout commands. The export command writes all objects of one or more types to a single XML file. The checkout command writes a single named object to an XML file.

Frequently, customers want to get all objects of a given type out of the system at once but need them all in separate files (e.g. to store them separately in a source code repository). Though there is no built in console command that does bulk exports into separate files, the attached Perl script can take the output from an export command and parse it into separate files per object.

How to use this script:

  1. Download the script to the filesystem where IdentityIQ is installed.
  2. Use the export command to export all objects of a given type from the console. Note: This script only parses export files that were created with the -clean option  (ID values stripped).
    • > export -clean /home/spadmin/artifacts/workflows.xml workflow
  3. Run this script, providing the export filename and the target directory name. (When no target directory is specified, split files will be written to a subdirectory of the current directory called splitOut.)
    • $ ./splitXml.pl /home/spadmin/artifacts/workflows.xml splitWorkflows
    • (This creates separate files for each workflow in a subdirectory of the current directory called splitWorkflows.)
Attachments
Version history
Revision #:
3 of 3
Last update:
‎May 17, 2026 01:45 AM
Updated by: