Confluence 5.7.4 XMLRPC storePage content renders as literal string


I have a simple Perl script, below, to create a new child page under a parent page identified by its ID. 

However, the contents are being passed as literal strings and they do not render as described in the storage formatting guidelines. For example: when content is set to "h1. Test", that is the text which appears on the page: "h1. Test" instead of a heading "Test". I tried using {html} and different formatting suggested in the storage formatting guidelines as well as what have worked for others, posted around google and different forums, on lower versions of Confluence and end up with lines of text every time.

API 2.0 using jQuery also behaves the same for me. 

Any ideas what I may be missing?
Any help is appreciated and thank you all in advance for your time and responses. 


use strict;
use XMLRPC::Lite;
use Confluence::Client::XMLRPC;
use warnings;
my $username="myUserName";
my $password="myPassword";
my $baseurl="";
my $spaceKey="TST";
my $parentPageTitle="MyTestPage"; 
my $object = Confluence::Client::XMLRPC->new("$baseurl/rpc/xmlrpc", $username, $password );
my $parentPage = $object->getPage($spaceKey, $parentPageTitle);
my $newpage = {
    space => $spaceKey,
    title => "New Child Page7",
    content => "h1. Test",
    parentId => $parentPage->{id},
my $createdpage = $object->storePage($newpage);
die "could not create child page" unless $createdpage;



1 answer

1 accepted

Hi Amir,

Try using below code and check if it helps

token = server.confluence1.login('username', 'password');
confluence1.convertWikiToStorageFormat(token, content);

To use {html} you need to Enable HTML Macro which by default is disabled.

Also most importantly XML RPC is Deprecated since Confluence 5.5 try using REST API wherever it is possible


Thank you very much for your reply. I will give it a try and will update this post.

convertWikiToStorageFormat did the trick. Thank you Taha.

Suggest an answer

Log in or Join to answer
Community showcase
Jason Wong
Published yesterday in Agility Beta

Welcome to agility

Every team in the world is unique, and so   Atlassian believes   that each and every team's best way of working  needs to  be molded to their unique circumstances  – ...

264 views 5 14
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot