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:
- Open Application Designer
- 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.

- Click on export button on in the tool bar.

- Save the file.
- 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)
- Create Object Structure.

- Create Publish channel.

- Add publish channel to External System.

- Export XML.
- Set the parameter “PRETTYPRINT” to 1 in the endpoint “MXXMLFILE” which is attached to the publish channel

- Click on Export, and add the condition in the field “Export Condition” to specify which xml you would like to export.

- Click on OK button, then the file will be exported in global directory folder.
- Set the parameter “PRETTYPRINT” to 1 in the endpoint “MXXMLFILE” which is attached to the publish channel
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:
- Run the following SQL:
SELECT APP, PRESENTATION FROM MAXPRESENTATION WHERE APP IN (‘WOTRACK’,’PR’,’PO’);
- 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.
- 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”); - Run the python script:

- The result is four files get generated in the folder “separated_files”
