Export / Import Maximo Applications Presentation (XMLs)

ow hard is export / import Maximo applications XMLs?
The answer is based on the format of Maximo application XMLs you need, either all Maximo applications XML’s are in one file, or each Maximo application XML in separate file.
Maximo offers two ways to export / import Maximo presentation as XML from the system. Based on your needs, you can go with the way that is most convenient to you.
Moreover, you can export Maximo presentation from the system using simple SQL query if you have database access.

This Article describes the two following topics:

  • Export / Import Maximo application presentations (XMLs) into one file
  • Divide the consolidated xml file of all Maximo application into separate files, one for each Maximo application.

Export / Import Maximo applications presentation (XMLs) into one file

Export / Import all XMLs of Maximo applications using Maximo Application Designer

Follow the following steps to export XMLs into one file:

  1. Open Application Designer
  2. List down all the Maximo applications that you want to export them into one file. You can use the filter in the list tab to list only Maximo’s application you need.
    Maximo Application Designer List tab
  3. Click on export button on in the tool bar.
    Exported file from application designer
  4. Save the file.
  5. Import the file again from by clicking on the import button in the tool bar

Export / Import all XMLs of Maximo applications Using Maximo Integration Framework (MIF)

  1. Create Object Structure.
    export file create object structure
  2. Create Publish channel.
    export file create publish channel
  3. Add publish channel to External System.
    export file attach publish channel to external system
  4. Export XML.
    1. Set the parameter “PRETTYPRINT” to 1 in the endpoint “MXXMLFILE” which is attached to the publish channel
      export file Maximo end point
    2. Click on Export, and add the condition in the field “Export Condition” to specify which xml you would like to export.
      export file Maximo external system
    3. Click on OK button, then the file will be exported in global directory folder.

Divide the consolidated xml file of all Maximo application into separate files

 Export All XMLs of Maximo applications Using SQL

If you have database access, so you can export Maximo Presentation into one file as the following step:

  1. Run the following SQL:
    SELECT APP, PRESENTATION FROM MAXPRESENTATION WHERE APP IN (‘WOTRACK’,’PR’,’PO’);
    export file in Maximo using sql
  2. A python script will be used to divide the consolidate xml into multiple files, one for each Maximo application.Install python interpreter if it is not installed on your machine.
  3. Create a new file with name “parse_xml.py”, then copy the following script to this file, and then run the file in command prompt
    import xml.etree.ElementTree as ET
    from xml.dom import minidom
    import xlsxwriter
    import collections
    import os
    print(“Started”)
    tree = ET.parse(‘maxpresentation.xml’)
    root = tree.getroot()
    for child in root:
    app_name = child.get(‘id’)
    print(“app_name=”+app_name)
    f = open(str(“separated_files\\”+app_name+”.xml”), “a”)
    xmlstr = minidom.parseString(ET.tostring(child)).toprettyxml(indent=” “)
    f.write(xmlstr)
    f.close()
    print(“End”);
  4. Run the python script:
    export file run python script
  5. The result is four files get generated in the folder “separated_files”
    export file result