Hi team ,
I have HTML file and want to upload the content of that HTML file in newly created confluence . I am able to create a confluence page using confluence.create_page command and able to add the static content to it . but whenver i m trying to read the contents of HTML page and trying to load it i am getting below error .
Error parsing xhtml: Unexpected character ' ' (code 32) in content after '<' (malformed start element?).
Can you please help me with this issue
HTML page looks like below
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.
This is going < to print
This is going > to print
</p>
</body>
</html>
---code
status = confluence.create_page(<span>'ABCD'</span> ,<span>#space,</span>
<span>'Report'</span>,<span>#title</span>
content ,<span>#'This is the HTML body',,</span>
parent_id=<span>123456</span>,<span>### this is the pageid of the page under which new page </span>
will be created
<span>type</span>=<span>'page'</span>,
representation=<span>'storage'</span>,
editor=<span>'v2'</span>)