Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Where can I find the namespace for the Confluence HTML?

Giorgos Flourentzos December 10, 2014

Hello,

I am using the REST API to retrieve the content of a page on Confluence. I am trying to parse the HTML content of the page in the reply but my parser (lxml, python) keeps throwing away all confluence-specific HTML tags.

Examples of such tags are:

 

<ac:structured-macro ac:name=\"toc\" />
<ac:structured-macro ac:name=\"tip\">
<ac:parameter ac:name=\"title\">Don't store information on this page!</ac:parameter>
<ac:rich-text-body>
<p>Do not store any information on this page as it might be lost while altering the page programmatically</p>
</ac:rich-text-body>
</ac:structured-macro>
<ac:structured-macro ac:name=\"htmlcomment\">

<ac:parameter ac:name=\"hidden\">true</ac:parameter>
<ac:parameter ac:name=\"atlassian-macro-output-type\">INLINE</ac:parameter>
<ac:rich-text-body>
<p>This should not display on the page! If you can see this, let me know!</p>
</ac:rich-text-body>
</ac:structured-macro>

 

Is there anywhere I can get the namespace from so that I can properly parse the custom HTML representing the page content? Many thanks in advance!

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
MichałS
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 10, 2014

Hi, Try this article here you will mayby find something interresting there.

TAGS
AUG Leaders

Atlassian Community Events