The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

The XML content could not be parsed. There is a problem at Unexpected close tag

Arikrishnan
November 15, 2023

Hello Guys,

I have a confluence macro that is working fine in Confluence version 7.x 

Now I am going to upgrade my macro to support confluence 8.x (8.5.0), I am facing a few issues while upgrading it.

I couldn't access the preview page before publishing on Confluence when I clicked the preview button. I was facing this error.

image.png

I'm not sure what I'm missing, so if anyone can help, that would be great.

Please let me know if you require any additional details from my end.

Any support you can give would be greatly appreciated.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Arikrishnan
November 17, 2023

Hi @Florian Bonniec

I have removed this method now working on confluence 8 macro.

try {
xhtmlUtils.handleMacroDefinitions(body, conversionContext, new MacroDefinitionHandler() {
public void handle(MacroDefinition macroDefinition) {
macros.add(macroDefinition);
}
});
} catch (XhtmlException e) {
com.prolaborate.configureui.ConfigResource.log.error("API Request URL XhtmlException: "+e.getMessage()+"\n");
throw new MacroExecutionException(e);

DEPLOYMENT TYPE
SERVER
VERSION
8.5.0
TAGS
AUG Leaders

Atlassian Community Events