Import an XML file to Confluence
Asked by Tal Ben Avram:

Hi, everyone,

I would love to know how to import an XML file into Confluence and whether there is a space limit in terms of the weight of the file.

Thank you very much for your help


Answers:
author: Srinatha T
body: Hi [@Tal Ben Avram](/t5/user/viewprofilepage/user-id/4599594) ,

Welcome to Atlassian community.

The below community discussion has answer to your question. You might want to go through the same.

* [How-can-I-import-XML-file-to-Confluence-space](https://community.atlassian.com/t5/Confluence-questions/How-can-I-import-XML-file-to-Confluence-space/qaq-p/1515651)

I hope that answers your question. Have a good weekend. !

Thanks,

Srinath T

comments: author: Tal Ben Avram
body: Thank you! [@Srinatha T](/t5/user/viewprofilepage/user-id/4686256)

Unfortunately, this didn't help, because I am trying to import an XML file that isn't in the confluence space.

How can I import these files? What are the actions?

The **Backup and Restore** option is not available under **General Configuration**.

How can I move this file to a new space I've created?


author: hbenakli
body: Same problem


author: hbenakli
body: [@Tal Ben Avram](/t5/user/viewprofilepage/user-id/4599594) so finaly managed to do it ?

I want to do the same thing but i don't know what are the actions to do that

Thank's for your help .


author: arvind.chaturvedi
body: I am having same challenge.. looking forward to hearing the solution.


author: Mark Timperley
body: Similar issue.

I have an xml file that was exported from another application. It contains data I would like to start to manage using confluence (i.e. migrating this data from a rigid application to confluence, where we can define our own workflow).

I would like to import this file into a confluence space, creating page property macro tables with the data it contains. This is not practical to do by hand, since I anticipate 100's of pages created from this xml file.

How can I do this? I can write code to read/write/modify the xml file to whatever format confluence would require for import, but I need to understand that format and how to perform the import.

As a proof of concept, I was able to convert the xml file into an MS Word document and then import that into confluence, but there is no way to specify page property macros in MS Word.


author: Isa Janssen
body: Has anyone found a solution?


author: Mark Timperley
body: Not yet. I intend to explore possibilities, such as using a REST API, but this would be a lot of work and I have not had the time...


author: Marcella
body: Same problem here.

I need to import several XML files to Confluence.

Each one should become a single page of a specific space, under different position (parent page).

Any suggestion?

Thanks


author: Mark Timperley
body: More details on what I did: I wrote a PowerShell script to extract the data I wanted from the XML files, and save it to a markdown (.md) file in the format I needed. Then I used pandoc to convert the .md file into a Word document (.docx), then imported the Word document into Confluence, selecting the split by headings option, so I end up with one Confluence page for every heading in the document. Not a nice process, but it works.


author: Lexi Carver
body: I'm also looking for a way to do this... I'll need to do this regularly, and in a way that simplifies the formatting. I'm not familiar with markdown, so Mark's method of .md \> .docx \> Confluence import is probably not a good option for me. Has anyone come up with another good solution?


Tags: cloud

confluence-cloud