Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Can we write content from a XML document into a Confluence page using Confluence Rest API

Can we write content from a XML document into a Confluence page using Confluence Rest API?

We want to import Documents into Confluence. But we are not satisfied with the output of the "Import Word Document" Functionality. So, we are thinking of Converting the Word Doc to XML and then reading content from XML Document to Already created Confluence Page.

Is there any way we can read data from XML Document and write it to the Confluence Page 

1 answer

0 votes

Yes, but it's an admin action and not yet realised in the REST API.

It's also going to be a lot of work - the only XML you can import into Confluence is a Confluence space export to XML.  You would need to convert your document into XML that Confluence would generate if you exported it, wrapped in a space, then you can import the space, and move the pages to where you want them.

I think you might be better off looking at what you are not satisfied with on the import word functions - it's probably going to be better to edit the word doc a little so that it can be imported in a way you want.  What is currently wrong with your import?

Yes, we have Converted the Word doc to XML File.

Do we need to Write any programming Language to write content from a XML document into a Confluence page using Confluence Rest API

> Yes, we have Converted the Word doc to XML File.

So you've converted it to Confluence space xml ready for import?  (Not just xml, but xml suitable for import?)

>Do we need to Write any programming Language to write content from a XML document into a Confluence page using Confluence Rest API

No, as I said, there is no REST call that can do space imports

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

🥓🙅🏻‍♀️ Meet-less May Badge!

Hello Confluence Community!  What if i told you that you could have a healthier life and be 100% meet-less? This month, we're promoting a healthy, balanced work diet with Confluence. We la...

148 views 2 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you